| 1 | <?php |
||
| 19 | class Heading extends Component |
||
| 20 | { |
||
| 21 | public const ROLE = 'heading'; |
||
| 22 | |||
| 23 | public const FORMAT = 'html'; |
||
| 24 | |||
| 25 | /** @var string */ |
||
| 26 | private $format; |
||
| 27 | |||
| 28 | /** @var string */ |
||
| 29 | private $role = self::ROLE; |
||
| 30 | |||
| 31 | public function __construct(string $text, int $headingType = 1, string $format = self::FORMAT) |
||
| 38 | |||
| 39 | public function getFormat(): string |
||
| 43 | |||
| 44 | public function getRole(): string |
||
| 48 | } |
||
| 49 |