1 | <?php |
||
9 | use Linio\Component\RuleEngine\Parser\ParserInterface; |
||
10 | use SimpleXMLElement; |
||
11 | |||
12 | abstract class Block |
||
13 | { |
||
14 | protected ?ParserInterface $parser; |
||
|
|||
15 | |||
16 | public function setParser(ParserInterface $parser): void |
||
17 | { |
||
18 | $this->parser = $parser; |
||
19 | } |
||
20 | |||
21 | abstract public function getNode(CompileNode $root, SimpleXMLElement $block): Node; |
||
22 | |||
23 | abstract public function getType(): string; |
||
24 | } |
||
25 |