| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | private function parse(): FilePath |
||
| 44 | { |
||
| 45 | if ($this->already_parsed === false) { |
||
| 46 | $res = pathinfo($this->filepath); |
||
| 47 | |||
| 48 | $this->directories = $res['dirname']; |
||
| 49 | $this->file = $res['basename']; |
||
| 50 | $this->file_extension = $res['extension']; |
||
| 51 | |||
| 52 | $this->already_parsed = true; |
||
| 53 | } |
||
| 54 | |||
| 55 | return $this; |
||
| 56 | } |
||
| 61 |