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|object $interests Properties/Keys are interest ids and values are boolean |
||
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 | * @see http://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#read-get_lists_list_id_members_subscriber_hash |
||
102 | * |
||
103 | * @throws EmailAddressNotSubscribed |
||
104 | * @throws \Exception |
||
105 | * |
||
106 | * @return \Illuminate\Support\Collection Info about the subscriber |
||
107 | */ |
||
108 | public function subscriberInfo($email) |
||
121 | |||
122 | /** |
||
123 | * Updates a subscriber if the email address is already |
||
124 | * on the list, or create the subscriber |
||
125 | * |
||
126 | * @param string $email |
||
127 | * @param string $firstName |
||
128 | * @param string $lastName |
||
129 | * @param array|object $interests Properties/Keys are interest ids and values are boolean |
||
130 | * @param array $extras Additional fields to be passed to the Mailchimp API |
||
131 | * |
||
132 | * @throws EmailAddressNotSubscribed |
||
133 | * @throws \Exception |
||
134 | * |
||
135 | * @return boolean |
||
136 | */ |
||
137 | public function updateSubscriber( |
||
164 | |||
165 | /** |
||
166 | * @param $email |
||
167 | * |
||
168 | * @throws EmailAddressNotSubscribed |
||
169 | * @throws \Exception |
||
170 | * |
||
171 | * @return boolean |
||
172 | */ |
||
173 | public function unsubscribe($email) |
||
190 | |||
191 | /** |
||
192 | * @throws \Exception |
||
193 | * |
||
194 | * @return array |
||
195 | */ |
||
196 | public function interestCategories() |
||
202 | |||
203 | /** |
||
204 | * @param $interestCategoryId |
||
205 | * |
||
206 | * @throws \Exception |
||
207 | * |
||
208 | * @return array |
||
209 | */ |
||
210 | public function interests($interestCategoryId) |
||
216 | } |
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..