1 | <?php |
||
7 | class MailingList |
||
8 | { |
||
9 | |||
10 | /** @var Mailchimp */ |
||
11 | protected $api; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $id; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $support; |
||
18 | |||
19 | public function __construct(Mailchimp $api, Support $support, $id) |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | public function id() |
||
33 | |||
34 | /** |
||
35 | * @param $email |
||
36 | * |
||
37 | * @throws \Exception |
||
38 | * |
||
39 | * @return boolean |
||
40 | */ |
||
41 | public function isSubscribed($email) |
||
56 | |||
57 | /** |
||
58 | * @param string $email |
||
59 | * @param string $firstName |
||
60 | * @param string $lastName |
||
61 | * @param array $interests Array of interest ids |
||
62 | * @param array $extras Additional fields to be passed to the Mailchimp API |
||
63 | * |
||
64 | * @throws \Exception |
||
65 | * |
||
66 | * @return boolean |
||
67 | */ |
||
68 | public function subscribe( |
||
97 | |||
98 | /** |
||
99 | * @param $email |
||
100 | * |
||
101 | * @throws EmailAddressNotSubscribed |
||
102 | * @throws \Exception |
||
103 | * |
||
104 | * @return \Illuminate\Support\Collection Info about the subscriber |
||
105 | */ |
||
106 | public function subscriberInfo($email) |
||
119 | |||
120 | /** |
||
121 | * @param string $email |
||
122 | * @param string $firstName |
||
123 | * @param string $lastName |
||
124 | * @param array $interests Array of interest ids |
||
125 | * @param array $extras Additional fields to be passed to the Mailchimp API |
||
126 | * |
||
127 | * @throws EmailAddressNotSubscribed |
||
128 | * @throws \Exception |
||
129 | * |
||
130 | * @return boolean |
||
131 | */ |
||
132 | public function updateSubscriber( |
||
168 | |||
169 | /** |
||
170 | * @param $email |
||
171 | * |
||
172 | * @throws EmailAddressNotSubscribed |
||
173 | * @throws \Exception |
||
174 | * |
||
175 | * @return boolean |
||
176 | */ |
||
177 | public function unsubscribe($email) |
||
194 | |||
195 | /** |
||
196 | * @throws \Exception |
||
197 | * |
||
198 | * @return array |
||
199 | */ |
||
200 | public function interestCategories() |
||
206 | |||
207 | /** |
||
208 | * @param $interestCategoryId |
||
209 | * |
||
210 | * @throws \Exception |
||
211 | * |
||
212 | * @return array |
||
213 | */ |
||
214 | public function interests($interestCategoryId) |
||
220 | } |
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..