1 | <?php |
||
15 | class NotifynderManager implements NotifynderManagerContract |
||
16 | { |
||
17 | /** |
||
18 | * @var Builder |
||
19 | */ |
||
20 | protected $builder; |
||
21 | |||
22 | /** |
||
23 | * @var SenderManagerContract |
||
24 | */ |
||
25 | protected $sender; |
||
26 | |||
27 | /** |
||
28 | * NotifynderManager constructor. |
||
29 | * @param SenderManagerContract $sender |
||
30 | */ |
||
31 | public function __construct(SenderManagerContract $sender) |
||
35 | |||
36 | /** |
||
37 | * @param string|int|\Fenos\Notifynder\Models\NotificationCategory $category |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function category($category) |
||
47 | |||
48 | /** |
||
49 | * @param array|\Traversable $data |
||
50 | * @param Closure $callback |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function loop($data, Closure $callback) |
||
60 | |||
61 | /** |
||
62 | * @param bool $force |
||
63 | * @return Builder |
||
64 | */ |
||
65 | public function builder($force = false) |
||
73 | |||
74 | /** |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function send() |
||
84 | |||
85 | /** |
||
86 | * @return SenderManagerContract |
||
87 | */ |
||
88 | public function sender() |
||
92 | |||
93 | protected function reset() |
||
97 | |||
98 | /** |
||
99 | * @param string $name |
||
100 | * @param Closure $sender |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function extend($name, Closure $sender) |
||
107 | |||
108 | /** |
||
109 | * @param $name |
||
110 | * @param $arguments |
||
111 | * @return $this|bool |
||
112 | * @throws BadMethodCallException |
||
113 | */ |
||
114 | public function __call($name, $arguments) |
||
135 | } |
||
136 |