| 1 | <?php |
||
| 16 | class CodeNode extends TextNode |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Language is not defined |
||
| 20 | */ |
||
| 21 | protected const LANGUAGE_GENERIC = 'generic'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $language; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * CodeNode constructor. |
||
| 30 | * @param string $body |
||
| 31 | * @param null|string $language |
||
| 32 | */ |
||
| 33 | public function __construct(string $body, ?string $language) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function isGeneric(): bool |
||
| 47 | } |
||
| 48 |