| Total Complexity | 7 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class FileParameter extends Parameter |
||
| 9 | { |
||
| 10 | public const TYPE = 'file'; |
||
| 11 | |||
| 12 | public const DIRECTORY = 'directory'; |
||
| 13 | |||
| 14 | private array $fileFormats = []; |
||
| 15 | |||
| 16 | public function setFileFormats(array $fileFormats): void |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Return true if the given filename is compatible with this parameters |
||
| 23 | * file formats. |
||
| 24 | */ |
||
| 25 | public function isCompatibleWithFiles(array $compatibleFilenames): bool |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getType(): string |
||
| 48 |