Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class AbstractDatabaseCommand extends AbstractLockedCommand |
||
15 | { |
||
16 | /** @var ProcessHelper */ |
||
17 | private $processHelper; |
||
18 | /** @var string */ |
||
19 | private $phpBinary; |
||
20 | |||
21 | 3 | public function __construct(Locker $locker, ProcessHelper $processHelper, PhpExecutableFinder $phpFinder) |
|
22 | { |
||
23 | 3 | parent::__construct($locker); |
|
24 | 3 | $this->processHelper = $processHelper; |
|
25 | 3 | $this->phpBinary = $phpFinder->find(false) ?: 'php'; |
|
26 | } |
||
27 | |||
28 | 1 | protected function runPhpCommand(OutputInterface $output, array $command): void |
|
32 | } |
||
33 | } |
||
34 |