1 | <?php |
||
12 | class PostmarkappParser extends AbstractParser implements EmailParserInterface |
||
13 | { |
||
14 | /** |
||
15 | * Parse the request and return itself. |
||
16 | * |
||
17 | * @return ParserInterface |
||
18 | */ |
||
19 | public function parse() : ParserInterface |
||
35 | |||
36 | /** |
||
37 | * Return an Address object from an input. |
||
38 | * |
||
39 | * @param array $input |
||
40 | * |
||
41 | * @return Address |
||
42 | */ |
||
43 | protected function address(array $input) : Address |
||
47 | |||
48 | /** |
||
49 | * Parse an array of addresses. |
||
50 | * |
||
51 | * @param array $input |
||
52 | * |
||
53 | * @return Collection |
||
54 | */ |
||
55 | protected function foreachAddress(array $input) : Collection |
||
65 | |||
66 | /** |
||
67 | * From property. |
||
68 | * |
||
69 | * @return Address |
||
70 | */ |
||
71 | public function from() : Address |
||
75 | |||
76 | /** |
||
77 | * Reply-to property. |
||
78 | * |
||
79 | * @todo: edit this to handler the reply-to parameter |
||
80 | * |
||
81 | * @return Address |
||
82 | */ |
||
83 | public function replyTo() : Address |
||
87 | |||
88 | /** |
||
89 | * To property. |
||
90 | * |
||
91 | * @return Collection<Address> |
||
92 | */ |
||
93 | public function to() : Collection |
||
97 | |||
98 | /** |
||
99 | * CC property. |
||
100 | * |
||
101 | * @return Collection<Address> |
||
102 | */ |
||
103 | public function cc() : Collection |
||
107 | |||
108 | /** |
||
109 | * BCC property. |
||
110 | * |
||
111 | * @return Collection<Address> |
||
112 | */ |
||
113 | public function bcc() : Collection |
||
117 | |||
118 | /** |
||
119 | * Subject property. |
||
120 | * |
||
121 | * @return string |
||
122 | */ |
||
123 | public function subject() |
||
127 | |||
128 | /** |
||
129 | * Body. |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | public function body() |
||
143 | |||
144 | /** |
||
145 | * Return the body html. |
||
146 | * |
||
147 | * @return string |
||
148 | */ |
||
149 | public function bodyHtml() |
||
153 | |||
154 | /** |
||
155 | * Return the body text. |
||
156 | * |
||
157 | * @return string |
||
158 | */ |
||
159 | public function bodyText() |
||
163 | |||
164 | /** |
||
165 | * IsText. |
||
166 | * |
||
167 | * @return bool |
||
168 | */ |
||
169 | public function bodyIsText() |
||
173 | |||
174 | /** |
||
175 | * IsHtml. |
||
176 | * |
||
177 | * @return bool |
||
178 | */ |
||
179 | public function bodyIsHtml() |
||
183 | |||
184 | /** |
||
185 | * Get email headers. |
||
186 | * |
||
187 | * @return Collection |
||
188 | */ |
||
189 | public function headers() : Collection |
||
199 | |||
200 | /** |
||
201 | * retrieve a email header. |
||
202 | * |
||
203 | * return Array |
||
204 | */ |
||
205 | public function header($name) |
||
211 | |||
212 | /** |
||
213 | * Determinate if the email is marked as spam. |
||
214 | * |
||
215 | * @return bool |
||
216 | */ |
||
217 | public function isSpam() |
||
223 | |||
224 | /** |
||
225 | * Has attachements. |
||
226 | * |
||
227 | * @return bool |
||
228 | */ |
||
229 | public function hasAttachements() |
||
233 | |||
234 | /** |
||
235 | * Attachments. |
||
236 | * |
||
237 | * @return Collection<File> |
||
238 | */ |
||
239 | public function attachements() : Collection |
||
256 | } |
||
257 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.