Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
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 | public function __construct(Locker $locker, ProcessHelper $processHelper, PhpExecutableFinder $phpFinder) |
||
22 | { |
||
23 | parent::__construct($locker); |
||
24 | $this->processHelper = $processHelper; |
||
25 | $this->phpBinary = $phpFinder->find(false) ?: 'php'; |
||
26 | } |
||
27 | |||
28 | protected function runPhpCommand(OutputInterface $output, array $command): void |
||
32 | } |
||
33 | } |
||
34 |