| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class HtmlBlock extends AbstractBlock implements StringContainerInterface |
||
| 20 | { |
||
| 21 | // Any changes to these constants should be reflected in .phpstorm.meta.php |
||
| 22 | public const TYPE_1_CODE_CONTAINER = 1; |
||
| 23 | public const TYPE_2_COMMENT = 2; |
||
| 24 | public const TYPE_3 = 3; |
||
| 25 | public const TYPE_4 = 4; |
||
| 26 | public const TYPE_5_CDATA = 5; |
||
| 27 | public const TYPE_6_BLOCK_ELEMENT = 6; |
||
| 28 | public const TYPE_7_MISC_ELEMENT = 7; |
||
| 29 | |||
| 30 | /** @var int */ |
||
| 31 | protected $type; |
||
| 32 | |||
| 33 | /** @var string */ |
||
| 34 | protected $literal = ''; |
||
| 35 | |||
| 36 | 192 | public function __construct(int $type) |
|
| 37 | { |
||
| 38 | 192 | parent::__construct(); |
|
| 39 | |||
| 40 | 192 | $this->type = $type; |
|
| 41 | 192 | } |
|
| 42 | |||
| 43 | 177 | public function getType(): int |
|
| 46 | } |
||
| 47 | |||
| 48 | 3 | public function setType(int $type): void |
|
| 49 | { |
||
| 50 | 3 | $this->type = $type; |
|
| 51 | 3 | } |
|
| 52 | |||
| 53 | 186 | public function getLiteral(): string |
|
| 54 | { |
||
| 55 | 186 | return $this->literal; |
|
| 56 | } |
||
| 57 | |||
| 58 | 186 | public function setLiteral(string $literal): void |
|
| 61 | 186 | } |
|
| 62 | } |
||
| 63 |