| 1 | <?php |
||
| 19 | class Heading implements ComponentInterface |
||
| 20 | { |
||
| 21 | public const ROLE = 'heading'; |
||
| 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, int $headingType = 1, string $format = self::FORMAT) |
||
| 40 | |||
| 41 | public function getText(): string |
||
| 45 | |||
| 46 | public function getRole(): string |
||
| 50 | |||
| 51 | public function getFormat(): string |
||
| 55 | } |
||
| 56 |