1 | <?php |
||
21 | final class Mailgun |
||
22 | { |
||
23 | /** |
||
24 | * @var null|string |
||
25 | */ |
||
26 | private $apiKey; |
||
27 | |||
28 | /** |
||
29 | * @var HttpMethodsClient |
||
30 | */ |
||
31 | private $httpClient; |
||
32 | |||
33 | /** |
||
34 | * @var Hydrator |
||
35 | */ |
||
36 | private $hydrator; |
||
37 | |||
38 | /** |
||
39 | * @var RequestBuilder |
||
40 | */ |
||
41 | private $requestBuilder; |
||
42 | |||
43 | /** |
||
44 | * This is a object that holds the last response from the API. |
||
45 | * |
||
46 | * @var History |
||
47 | */ |
||
48 | private $responseHistory; |
||
49 | |||
50 | public function __construct( |
||
62 | |||
63 | public static function create(string $apiKey, string $endpoint = 'https://api.mailgun.net'): self |
||
71 | |||
72 | /** |
||
73 | * @return ResponseInterface|null |
||
74 | */ |
||
75 | public function getLastResponse() |
||
79 | |||
80 | /** |
||
81 | * @return Api\Stats |
||
82 | */ |
||
83 | public function stats() |
||
87 | |||
88 | /** |
||
89 | * @return Api\Attachment |
||
90 | */ |
||
91 | public function attachment() |
||
95 | |||
96 | /** |
||
97 | * @return Api\Domain |
||
98 | */ |
||
99 | public function domains() |
||
103 | |||
104 | /** |
||
105 | * @return Api\Tag |
||
106 | */ |
||
107 | public function tags() |
||
111 | |||
112 | /** |
||
113 | * @return Api\Event |
||
114 | */ |
||
115 | public function events() |
||
119 | |||
120 | /** |
||
121 | * @return Api\Route |
||
122 | */ |
||
123 | public function routes() |
||
127 | |||
128 | /** |
||
129 | * @return Api\Webhook |
||
130 | */ |
||
131 | public function webhooks() |
||
135 | |||
136 | /** |
||
137 | * @return Api\Message |
||
138 | */ |
||
139 | public function messages() |
||
143 | |||
144 | /** |
||
145 | * @return Api\Suppression |
||
146 | */ |
||
147 | public function suppressions() |
||
151 | } |
||
152 |
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..