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