| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct($filePath) |
||
| 19 | { |
||
| 20 | $this->fs = new Filesystem(); |
||
| 21 | $p = $this->filePath = $this->fs->absolutePath($filePath); |
||
| 22 | |||
| 23 | if (!$this->fs->exists($p)) |
||
| 24 | { |
||
| 25 | throw new FileNotFoundException("The following file could not be found: ${p}"); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->extension = strtolower($this->fs->getExtension($p)); |
||
| 29 | |||
| 30 | $this->refreshFileContent(); |
||
| 31 | } |
||
| 32 | |||
| 60 |