| 1 | <?php |
||
| 19 | class Photo extends UrlAwareComponent |
||
| 20 | { |
||
| 21 | public const ROLE = 'photo'; |
||
| 22 | |||
| 23 | /** @var string */ |
||
| 24 | private $role = self::ROLE; |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | private $caption; |
||
| 28 | |||
| 29 | public function __construct(string $url, string $caption) |
||
| 35 | |||
| 36 | public function getRole(): string |
||
| 40 | |||
| 41 | public function getCaption(): string |
||
| 45 | } |
||
| 46 |