1 | <?php |
||
11 | class JsonLintToolExecutor |
||
12 | { |
||
13 | const CHECKING_MESSAGE = 'Checking json files'; |
||
14 | /** |
||
15 | * @var JsonLintProcessorInterface |
||
16 | */ |
||
17 | private $jsonLintProcessor; |
||
18 | /** |
||
19 | * @var OutputInterface |
||
20 | */ |
||
21 | private $output; |
||
22 | |||
23 | /** |
||
24 | * JsonLintToolExecutor constructor. |
||
25 | * |
||
26 | * @param JsonLintProcessorInterface $jsonLintProcessor |
||
27 | * @param OutputInterface $output |
||
28 | */ |
||
29 | 3 | public function __construct(JsonLintProcessorInterface $jsonLintProcessor, OutputInterface $output) |
|
34 | |||
35 | /** |
||
36 | * @param array $files |
||
37 | * @param string $errorMessage |
||
38 | * |
||
39 | * @throws JsonLintViolationsException |
||
40 | */ |
||
41 | 2 | public function execute(array $files, $errorMessage) |
|
62 | } |
||
63 |