1 | <?php |
||
5 | abstract class Component implements ComponentInterface |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $text; |
||
9 | |||
10 | /** @var string|null */ |
||
11 | protected $layout; |
||
12 | |||
13 | /** @var array */ |
||
14 | protected $inlineTextStyles; |
||
15 | |||
16 | public function __construct(string $text, string $layout = null, array $inlineTextStyles = []) |
||
22 | |||
23 | public function getText(): string |
||
27 | |||
28 | abstract public function getRole(): string; |
||
29 | |||
30 | public function getLayout(): ?string |
||
34 | |||
35 | public function getInlineTextStyles(): array |
||
39 | } |
||
40 |