| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class ComposerInstallCommand implements Command |
||
| 8 | { |
||
| 9 | private $repository; |
||
| 10 | private $version; |
||
| 11 | |||
| 12 | 9 | public function __construct(string $repository, ?string $version = null) |
|
| 13 | { |
||
| 14 | 9 | $this->repository = $repository; |
|
| 15 | 9 | $this->version = $version; |
|
| 16 | } |
||
| 17 | |||
| 18 | 5 | public function __toString(): string |
|
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | 5 | private function targetDir(): string |
|
| 35 |