| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class BoxBuildCommand implements Command |
||
| 8 | { |
||
| 9 | private $repository; |
||
| 10 | private $phar; |
||
| 11 | private $bin; |
||
| 12 | private $workDir; |
||
| 13 | private $version; |
||
| 14 | |||
| 15 | 12 | public function __construct(string $repository, string $phar, string $bin, string $workDir, ?string $version = null) |
|
| 16 | { |
||
| 17 | 12 | $this->repository = $repository; |
|
| 18 | 12 | $this->phar = $phar; |
|
| 19 | 12 | $this->bin = $bin; |
|
| 20 | 12 | $this->workDir = $workDir; |
|
| 21 | 12 | $this->version = $version; |
|
| 22 | } |
||
| 23 | |||
| 24 | 6 | public function __toString(): string |
|
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | 6 | private function targetDir(): string |
|
| 46 |