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:
@@ -75,7 +75,7 @@ class email extends base
|
||||
*/
|
||||
public function get_id(): int
|
||||
{
|
||||
return NOTIFY_EMAIL;
|
||||
return self::NOTIFY_EMAIL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -115,7 +115,7 @@ class jabber extends base
|
||||
*/
|
||||
public function get_id(): int
|
||||
{
|
||||
return NOTIFY_IM;
|
||||
return self::NOTIFY_IM;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user