| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function readFile(FileName $fileName): string |
||
| 26 | { |
||
| 27 | $fileNameAsString = $fileName->getFileName(); |
||
| 28 | |||
| 29 | $fileContents = @file_get_contents($fileNameAsString); |
||
| 30 | if (false === $fileContents) { |
||
| 31 | throw FileAccessException::readFileException($fileName); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $fileContents; |
||
| 35 | } |
||
| 52 |