1 | <?php |
||
2 | class Notifications_Pushover implements IPushNotification { |
||
|
|||
3 | |||
4 | private $token; |
||
5 | private $user; |
||
6 | public function __construct($token, $user){ |
||
10 | |||
11 | static $priorities = array( |
||
12 | 0 => 'info', |
||
13 | 1 => 'warning', |
||
14 | 2 => 'error', |
||
15 | ); |
||
16 | |||
17 | public static function getName(){ |
||
20 | |||
21 | public static function getParameters(){ |
||
27 | |||
28 | public function notify($message, $severity = 'info', $event = null){ |
||
46 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.