| 1 | <?php |
||
| 8 | class Handler implements Pusher |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Pushers. |
||
| 12 | * |
||
| 13 | * @var WZRD\Contracts\Push\Pusher[] |
||
| 14 | */ |
||
| 15 | protected $pushers; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Construct with pushers instances. |
||
| 19 | * |
||
| 20 | * @param WZRD\Contracts\Push\Pusher[] $pushers |
||
| 21 | */ |
||
| 22 | public function __construct(array $pushers) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Push message. |
||
| 29 | * |
||
| 30 | * @param WZRD\Contracts\Push\Notification $notification |
||
| 31 | * @param array $options |
||
| 32 | */ |
||
| 33 | public function push(NotificationContract $notification, array $options = []) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get supported platforms. |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function getSupportedPlatforms() |
||
| 59 | } |
||
| 60 |