| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | class CommandFactory |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $psql; |
||
| 11 | |||
| 12 | |||
| 13 | public function __construct(string $psql = '/usr/bin/psql') |
||
| 14 | { |
||
| 15 | $this->psql = $psql; |
||
| 16 | } |
||
| 17 | |||
| 18 | |||
| 19 | public function create(DatabaseReplicator\Config $config): DatabaseReplicator\Command |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | private function createPgPhp(DatabaseReplicator\Config $config): PgPhp |
||
| 28 | } |
||
| 29 | |||
| 30 | |||
| 31 | private function createPsql(DatabaseReplicator\Config $config): Psql |
||
| 37 |