Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class AttachmentMask extends Mask { |
||
23 | |||
24 | /** @var Attachment $parent */ |
||
25 | protected $parent; |
||
26 | |||
27 | /** |
||
28 | * Get the attachment content base64 encoded |
||
29 | * |
||
30 | * @return string|null |
||
31 | */ |
||
32 | public function getContentBase64Encoded() { |
||
33 | return base64_encode($this->parent->content); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get a base64 image src string |
||
38 | * |
||
39 | * @return string|null |
||
40 | */ |
||
41 | public function getImageSrc() { |
||
43 | } |
||
44 | } |