1 | <?php |
||
15 | class VCardMedia |
||
16 | { |
||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | protected $raw; |
||
21 | |||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | protected $fileType; |
||
26 | |||
27 | /** |
||
28 | * @var string|null |
||
29 | */ |
||
30 | protected $url; |
||
31 | |||
32 | /** |
||
33 | * @return null|string |
||
34 | */ |
||
35 | public function getRaw(): ?string |
||
39 | |||
40 | /** |
||
41 | * @param null|string $raw |
||
42 | */ |
||
43 | public function setRaw(?string $raw): void |
||
47 | |||
48 | /** |
||
49 | * @return null|string |
||
50 | */ |
||
51 | public function getFileType(): ?string |
||
55 | |||
56 | /** |
||
57 | * @param null|string $fileType |
||
58 | */ |
||
59 | public function setFileType(?string $fileType): void |
||
63 | |||
64 | /** |
||
65 | * @return null|string |
||
66 | */ |
||
67 | public function getUrl(): ?string |
||
71 | |||
72 | /** |
||
73 | * @param null|string $url |
||
74 | */ |
||
75 | public function setUrl(?string $url): void |
||
79 | |||
80 | /** |
||
81 | * @param null|string $value |
||
82 | * @param bool $isRawValue |
||
83 | */ |
||
84 | public function parser(?string $value, bool $isRawValue): void |
||
92 | |||
93 | /** |
||
94 | * Add a photo or logo (depending on property name) |
||
95 | * |
||
96 | * @param string $url image url or filename |
||
97 | * @param bool $include Do we include the image in our vcard or not? |
||
98 | * |
||
99 | * @throws EmptyUrlException |
||
100 | * @throws InvalidImageException |
||
101 | * @throws InvalidUrlException |
||
102 | */ |
||
103 | public function addUrlMedia(string $url, bool $include = true): void |
||
127 | |||
128 | /** |
||
129 | * Add a photo or logo (depending on property name) |
||
130 | * |
||
131 | * @param string $raw |
||
132 | * @param null|string $fileType |
||
133 | */ |
||
134 | public function addRawMedia(string $raw, ?string $fileType = null): void |
||
139 | |||
140 | /** |
||
141 | * @param string $property |
||
142 | * |
||
143 | * @return array |
||
144 | */ |
||
145 | public function builderUrl(string $property): array |
||
166 | |||
167 | /** |
||
168 | * @param string $property |
||
169 | * |
||
170 | * @return array |
||
171 | */ |
||
172 | public function builderRaw(string $property): array |
||
190 | } |
||
191 |