| Total Complexity | 5 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | class FileParser implements Parser | ||
| 11 | { | ||
| 12 | /** @var string */ | ||
| 13 | protected $path; | ||
| 14 | |||
| 15 | public function __construct(string $path) | ||
| 16 |     { | ||
| 17 |         if (!file_exists($path)) { | ||
| 18 | throw FileNotFound::path($path); | ||
| 19 | } | ||
| 20 | |||
| 21 | $this->path = $path; | ||
| 22 | } | ||
| 23 | |||
| 24 | public function getParsed(): Page | ||
| 49 | } | ||
| 50 | } | ||
| 51 |