1 | <?php |
||
15 | class IntercomChannel |
||
16 | { |
||
17 | /** |
||
18 | * @var IntercomClient |
||
19 | */ |
||
20 | private $client; |
||
21 | |||
22 | /** |
||
23 | * @param IntercomClient $client |
||
24 | */ |
||
25 | 7 | public function __construct(IntercomClient $client) |
|
29 | |||
30 | /** |
||
31 | * Send the given notification via Intercom API. |
||
32 | * |
||
33 | * @param mixed $notifiable |
||
34 | * @param Notification $notification |
||
35 | * |
||
36 | * @return void |
||
37 | * |
||
38 | * @throws MessageIsNotCompleteException When message is not filled correctly |
||
39 | * @throws GuzzleException Other Guzzle uncatched exceptions |
||
40 | * @throws RequestException When server responses with a bad HTTP code |
||
41 | * |
||
42 | * @see https://developers.intercom.com/intercom-api-reference/reference#admin-initiated-conversation |
||
43 | */ |
||
44 | 5 | public function send($notifiable, Notification $notification): void |
|
52 | |||
53 | /** |
||
54 | * @return IntercomClient |
||
55 | */ |
||
56 | 1 | public function getClient(): IntercomClient |
|
60 | |||
61 | /** |
||
62 | * @param mixed $notifiable |
||
63 | * @param Notification $notification |
||
64 | * |
||
65 | * @throws MessageIsNotCompleteException |
||
66 | * @throws GuzzleException |
||
67 | */ |
||
68 | 5 | protected function sendNotification($notifiable, Notification $notification): void |
|
91 | } |
||
92 |
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.