1 | <?php |
||
12 | class AbstractParser implements JSONParserChainElementInterface, OutputContainerBearerInterface |
||
13 | { |
||
14 | /** @var OutputContainerInterface */ |
||
15 | protected $outputContainer; |
||
16 | |||
17 | /** @var string */ |
||
18 | protected $singleResultMarker; |
||
19 | |||
20 | 37 | /** @var string */ |
|
21 | protected $title; |
||
22 | 37 | ||
23 | 37 | /** @var string */ |
|
24 | 37 | protected $status; |
|
25 | |||
26 | 37 | /** @var string */ |
|
27 | 37 | protected $messageStartsWith; |
|
28 | |||
29 | /** |
||
30 | * AbstractParser constructor. |
||
31 | * |
||
32 | 26 | * @param OutputContainerInterface $outputContainer |
|
33 | * @param string $singleResultMarker The output of the single test result (.FERW etc) |
||
34 | 26 | * @param string $status The status that the parser should catch |
|
35 | * @param string | null $messageStartsWith The start of the message that the parser should look for |
||
36 | */ |
||
37 | public function __construct(OutputContainerInterface $outputContainer, $singleResultMarker, $status, $messageStartsWith = null) |
||
44 | |||
45 | 24 | /** |
|
46 | 10 | * @return OutputContainerInterface |
|
47 | */ |
||
48 | 10 | public function getOutputContainer() |
|
52 | |||
53 | 10 | /** |
|
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 18 | public function parsingFoundResult(ProcessResultInterface $process, \stdClass $log) |
|
71 | 15 | ||
72 | /** |
||
73 | * @param \stdClass $log |
||
74 | 37 | * @return bool |
|
75 | */ |
||
76 | 37 | private function checkMessageStart(\stdClass $log) |
|
88 | } |
||
89 |