1 | <?php |
||
19 | class Figure implements ComponentInterface |
||
20 | { |
||
21 | public const ROLE = 'figure'; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $url; |
||
25 | |||
26 | /** @var string */ |
||
27 | private $role = self::ROLE; |
||
28 | |||
29 | /** @var string */ |
||
30 | private $caption; |
||
31 | |||
32 | public function __construct(string $url, string $caption) |
||
37 | |||
38 | public function getUrl(): string |
||
42 | |||
43 | public function getRole(): string |
||
47 | |||
48 | public function getCaption(): string |
||
52 | } |
||
53 |