1 | <?php namespace Camelcased\Postmark\Inbound; |
||
3 | class Attachment { |
||
4 | /** |
||
5 | * @var array |
||
6 | */ |
||
7 | protected $attachment; |
||
8 | |||
9 | public function __construct(array $attachment) |
||
13 | |||
14 | /** |
||
15 | * Maps any undefined functions to the correct field within the attachment |
||
16 | * |
||
17 | * @return mixed |
||
18 | */ |
||
19 | public function __call($name, $arguments) |
||
23 | |||
24 | /** |
||
25 | * Returns the attachments MIME type. Ex: image/jpeg |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function Type() |
||
33 | |||
34 | /** |
||
35 | * Returns the content of the attachment in all of it's raw glory |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function DecodedContent() |
||
43 | } |
||
44 |