1 | <?php |
||
13 | class HasSyntaxCorrectCheck implements CheckInterface |
||
14 | { |
||
15 | const ERROR_STATUS = 'HAS_SYNTAX_ERROR'; |
||
16 | |||
17 | /** @var Parser */ |
||
18 | private $parser; |
||
19 | |||
20 | /** @var string */ |
||
21 | private $lastError; |
||
22 | |||
23 | |||
24 | |||
25 | /** |
||
26 | * @param Parser $parser |
||
27 | */ |
||
28 | 1 | public function __construct(Parser $parser) |
|
32 | |||
33 | |||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function execute(Candidate $candidate): bool |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function getLastErrorMessage(): string |
||
64 | |||
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | public function getErrorCode(): string |
||
73 | } |
||
74 |