1 | <?php |
||
19 | class Body extends Component |
||
20 | { |
||
21 | public const FORMAT = 'html'; |
||
22 | |||
23 | public const ROLE = 'body'; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $role = self::ROLE; |
||
27 | |||
28 | /** @var string */ |
||
29 | private $format; |
||
30 | |||
31 | public function __construct(string $text, string $layout = null, string $format = self::FORMAT) |
||
37 | |||
38 | public function getFormat(): string |
||
42 | |||
43 | public function getRole(): string |
||
47 | } |
||
48 |