| 1 | <?php  | 
            ||
| 19 | class Image implements ComponentInterface  | 
            ||
| 20 | { | 
            ||
| 21 | public const ROLE = 'image';  | 
            ||
| 22 | |||
| 23 | /** @var string */  | 
            ||
| 24 | private $url;  | 
            ||
| 25 | |||
| 26 | /** @var string */  | 
            ||
| 27 | private $role = self::ROLE;  | 
            ||
| 28 | |||
| 29 | public function __construct(string $url)  | 
            ||
| 33 | |||
| 34 | public function getUrl(): string  | 
            ||
| 38 | |||
| 39 | public function getRole(): string  | 
            ||
| 43 | }  | 
            ||
| 44 |