1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

[ticket/17135] Move notify method constants to interface class

PHPBB-17135
This commit is contained in:
rxu
2025-01-06 20:01:52 +07:00
parent 28d5534d06
commit 0d8c0c4228
21 changed files with 77 additions and 50 deletions

View File

@@ -75,7 +75,7 @@ class email extends base
*/
public function get_id(): int
{
return NOTIFY_EMAIL;
return self::NOTIFY_EMAIL;
}
/**

View File

@@ -115,7 +115,7 @@ class jabber extends base
*/
public function get_id(): int
{
return NOTIFY_IM;
return self::NOTIFY_IM;
}
/**

View File

@@ -18,6 +18,15 @@ namespace phpbb\messenger\method;
*/
interface messenger_interface
{
/** @var int Email notify method used */
public const NOTIFY_EMAIL = 0;
/** @var int Instant messaging (Jabber) notify method used */
public const NOTIFY_IM = 1;
/** @var int Both notify methods used */
public const NOTIFY_BOTH = 2;
/**
* Get messenger method id
*