| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class FileInput implements InputInterface |
||
| 10 | { |
||
| 11 | private SplFileInfo $fileInfo; |
||
| 12 | |||
| 13 | public function __construct(SplFileInfo $fileInfo) |
||
| 14 | { |
||
| 15 | $this->fileInfo = $fileInfo; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getContents(): string |
||
| 19 | { |
||
| 20 | return $this->fileInfo->getContents(); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getName(): string |
||
| 26 | } |
||
| 27 | } |
||
| 28 |