| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 14 | final class GeneratorInput |
||
| 15 | { |
||
| 16 | private CodebaseDirectory $directory; |
||
| 17 | |||
| 18 | private OutputFilePath $outputFile; |
||
| 19 | |||
| 20 | private ProgressDisplay $display; |
||
| 21 | |||
| 22 | /** @param string[] $input */ |
||
| 23 | public function __construct(array $input, ProgressDisplay $display) |
||
| 24 | { |
||
| 25 | $this->directory = new CodebaseDirectory($input['directory'] ?? ''); |
||
| 26 | $this->outputFile = new OutputFilePath($input['output'] ?? ''); |
||
| 27 | $this->display = $display; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function outputFile(): OutputFilePath |
||
| 31 | { |
||
| 32 | return $this->outputFile; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function directory(): CodebaseDirectory |
||
| 38 | } |
||
| 39 | |||
| 40 | public function display(): ProgressDisplay |
||
| 43 | } |
||
| 44 | } |
||
| 45 |