1 | <?php |
||
12 | class NotificationListener |
||
13 | { |
||
14 | /** |
||
15 | * Jpush 对象 |
||
16 | * |
||
17 | * @var Jpush |
||
18 | */ |
||
19 | private $jpush = null; |
||
20 | |||
21 | /** |
||
22 | * @var NotificationRepositoryInterface |
||
23 | */ |
||
24 | private $notifications; |
||
25 | |||
26 | /** |
||
27 | * PushNotificationHandler constructor. |
||
28 | * |
||
29 | * @param NotificationRepositoryInterface $notifications |
||
30 | */ |
||
31 | public function __construct(NotificationRepositoryInterface $notifications) |
||
35 | |||
36 | /** |
||
37 | * 推送消息. |
||
38 | * |
||
39 | * @param $user_ids |
||
40 | * @param $msg |
||
41 | * @param $extras |
||
42 | */ |
||
43 | protected function push($user_ids, $msg, $extras = null) |
||
65 | |||
66 | /** |
||
67 | * Handle the event. |
||
68 | * |
||
69 | * @param Event|TopicUpVoted $event |
||
70 | */ |
||
71 | public function handle(Event $event) |
||
99 | |||
100 | /** |
||
101 | * 注册监听器给订阅者。. |
||
102 | * |
||
103 | * @param \Illuminate\Events\Dispatcher $events |
||
104 | */ |
||
105 | public function subscribe($events) |
||
110 | } |
||
111 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.