| 1 | <?php |
||
| 19 | class Body implements ComponentInterface |
||
| 20 | { |
||
| 21 | public const ROLE = 'body'; |
||
| 22 | |||
| 23 | public const FORMAT = 'html'; |
||
| 24 | |||
| 25 | /** @var string */ |
||
| 26 | private $text; |
||
| 27 | |||
| 28 | /** @var string */ |
||
| 29 | private $role = self::ROLE; |
||
| 30 | |||
| 31 | /** @var string */ |
||
| 32 | private $format; |
||
| 33 | |||
| 34 | public function __construct(string $text, string $format = self::FORMAT) |
||
| 39 | |||
| 40 | public function getText(): string |
||
| 44 | |||
| 45 | public function getRole(): string |
||
| 49 | |||
| 50 | public function getFormat(): string |
||
| 54 | } |
||
| 55 |