| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function build(): Source |
||
| 35 | { |
||
| 36 | if (!\file_exists($this->filePath) || !\is_readable($this->filePath)) { |
||
| 37 | throw new FileNotFoundException(sprintf('The file %s cannot be found or is not readable', $this->filePath)); |
||
| 38 | } |
||
| 39 | |||
| 40 | return new Source(\file_get_contents($this->filePath)); |
||
| 41 | } |
||
| 43 |