| 1 | <?php declare(strict_types=1); |
||
| 5 | final class CliInput |
||
| 6 | { |
||
| 7 | |||
| 8 | /** @var string[] */ |
||
| 9 | private $dirs; |
||
| 10 | |||
| 11 | /** @var string[] */ |
||
| 12 | private $excludePaths; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * File extensions |
||
| 16 | * |
||
| 17 | * @var string[] |
||
| 18 | */ |
||
| 19 | private $exts; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string[] $dirs |
||
| 23 | */ |
||
| 24 | public function __construct(array $dirs, ?string $exclude = null, ?string $ext = null) |
||
| 49 | |||
| 50 | /** @return string[] */ |
||
| 51 | public function directories() : array |
||
| 55 | |||
| 56 | /** @return string[] */ |
||
| 57 | public function excludePaths() : array |
||
| 61 | |||
| 62 | /** @return string[] */ |
||
| 63 | public function filenames() : array |
||
| 67 | } |
||
| 68 |