| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class PushNotifications implements HandlerInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Stablishes type of handler |
||
| 19 | */ |
||
| 20 | public function shouldHandle(NotificationInterface $notification) |
||
| 21 | { |
||
| 22 | return $notification instanceof PushNotificationsContract; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Handles actions to take depending of notifications |
||
| 27 | * @param NotificationInterface $notification |
||
| 28 | */ |
||
| 29 | public function handle(NotificationInterface $notification) |
||
| 34 | } |
||
| 35 | } |
||
| 36 |