1 | <?php |
||
20 | class Service |
||
21 | { |
||
22 | /** |
||
23 | * @var \Jgut\Tify\Adapter\AbstractAdapter |
||
24 | */ |
||
25 | protected $adapters; |
||
26 | |||
27 | /** |
||
28 | * @var \Jgut\Tify\Notification[] |
||
29 | */ |
||
30 | protected $notifications; |
||
31 | |||
32 | /** |
||
33 | * Manager constructor. |
||
34 | * |
||
35 | * @param \Jgut\Tify\Adapter\AbstractAdapter[] $adapters |
||
36 | * @param \Jgut\Tify\Notification[] $notifications |
||
37 | */ |
||
38 | public function __construct(array $adapters = [], array $notifications = []) |
||
50 | |||
51 | /** |
||
52 | * Retrieve registered adapters. |
||
53 | * |
||
54 | * @return \Jgut\Tify\Adapter\AbstractAdapter[] |
||
55 | */ |
||
56 | public function getAdapters() |
||
60 | |||
61 | /** |
||
62 | * Register adapter. |
||
63 | * |
||
64 | * @param \Jgut\Tify\Adapter\AbstractAdapter $adapter |
||
65 | * |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function addAdapter(AbstractAdapter $adapter) |
||
74 | |||
75 | /** |
||
76 | * Clear list of adapters. |
||
77 | */ |
||
78 | public function clearAdapters() |
||
84 | |||
85 | /** |
||
86 | * Retrieve registered notifications. |
||
87 | * |
||
88 | * @return \Jgut\Tify\Notification[] |
||
89 | */ |
||
90 | public function getNotifications() |
||
94 | |||
95 | /** |
||
96 | * Register notification. |
||
97 | * |
||
98 | * @param \Jgut\Tify\Notification $notification |
||
99 | * |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function addNotification(Notification $notification) |
||
108 | |||
109 | /** |
||
110 | * Clear list of notifications. |
||
111 | */ |
||
112 | public function clearNotifications() |
||
118 | |||
119 | /** |
||
120 | * Push notifications. |
||
121 | * |
||
122 | * @return \Jgut\Tify\Result[] |
||
123 | */ |
||
124 | public function push() |
||
153 | |||
154 | /** |
||
155 | * Get feedback from push services. |
||
156 | * |
||
157 | * @return array |
||
158 | */ |
||
159 | public function feedback() |
||
182 | } |
||
183 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..