1 | <?php |
||
12 | abstract class AbstractParser implements ProcessOutputParserChainElementInterface, OutputContainerBearerInterface |
||
13 | { |
||
14 | /** @var OutputContainer */ |
||
15 | protected $outputContainer; |
||
16 | |||
17 | /** |
||
18 | * AbstractParser constructor. |
||
19 | */ |
||
20 | 37 | public function __construct() |
|
28 | |||
29 | /** |
||
30 | * @return OutputContainer |
||
31 | */ |
||
32 | 26 | public function getOutputContainer() |
|
36 | |||
37 | /** |
||
38 | * @param ProcessResultInterface $process |
||
39 | * @return bool |
||
40 | */ |
||
41 | 24 | protected function storeParsedBlocks(ProcessResultInterface $process) |
|
58 | |||
59 | /** |
||
60 | * @param ProcessResultInterface $process |
||
61 | * @return bool |
||
62 | */ |
||
63 | 18 | protected function parsingFoundSomething(ProcessResultInterface $process) |
|
73 | |||
74 | 37 | private function parse(ProcessResultInterface $process) |
|
81 | |||
82 | /** |
||
83 | * @param $constantName |
||
84 | * @throws \Exception |
||
85 | */ |
||
86 | 37 | private function assertConstantExist($constantName) |
|
92 | } |
||
93 |