1 | <?php |
||
14 | class SendOne implements DefaultSender |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $infoNotification = []; |
||
20 | |||
21 | /** |
||
22 | * @param $infoNotification |
||
23 | */ |
||
24 | public function __construct($infoNotification) |
||
28 | |||
29 | /** |
||
30 | * Send Single notification. |
||
31 | * |
||
32 | * @param StoreNotification $sender |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function send(StoreNotification $sender) |
||
41 | |||
42 | /** |
||
43 | * Check if the category of the notification has been |
||
44 | * specified in the array of information. |
||
45 | * |
||
46 | * @return bool |
||
47 | * @throws \Fenos\Notifynder\Exceptions\CategoryNotFoundException |
||
48 | */ |
||
49 | protected function hasCategory() |
||
60 | } |
||
61 |