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