Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class BoxBuildCommand implements Command |
||
8 | { |
||
9 | private string $repository; |
||
10 | private string $phar; |
||
11 | private string $bin; |
||
12 | private string $workDir; |
||
13 | private ?string $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 | 6 | ); |
|
37 | } |
||
38 | |||
39 | 6 | private function targetDir(): string |
|
46 |