| 1 | <?php |
||
| 2 | class Notifications_NotifyMyAndroid implements IPushNotification { |
||
|
|
|||
| 3 | |||
| 4 | private $apiKey; |
||
| 5 | public function __construct($apikey){ |
||
| 8 | |||
| 9 | static $priorities = array( |
||
| 10 | 0 => 'info', |
||
| 11 | 2 => 'error', |
||
| 12 | ); |
||
| 13 | |||
| 14 | public static function getName(){ |
||
| 17 | |||
| 18 | public static function getParameters(){ |
||
| 23 | |||
| 24 | public function notify($message, $severity = 'info', $event = null){ |
||
| 41 | } |
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.