Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | class InlineAttachment |
||
6 | { |
||
7 | /** |
||
8 | * @var Attachment |
||
9 | */ |
||
10 | private $attachment; |
||
11 | |||
12 | /** |
||
13 | * @var string inline Content ID (in mailbox format, per RFC 2392) |
||
14 | */ |
||
15 | private $content_id; |
||
16 | |||
17 | /** |
||
18 | * @var string random seed for Content ID creation |
||
19 | */ |
||
20 | private static $seed; |
||
21 | |||
22 | /** |
||
23 | * @param Attachment $attachment |
||
24 | */ |
||
25 | 5 | public function __construct(Attachment $attachment) |
|
35 | 5 | } |
|
36 | |||
37 | /** |
||
38 | * @return Attachment |
||
39 | */ |
||
40 | 5 | public function getAttachment(): Attachment |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | 5 | public function getContentID(): string |
|
53 |