| 1 | <?php  | 
            ||
| 19 | abstract class AbstractReader implements ReaderInterface  | 
            ||
| 20 | { | 
            ||
| 21 | /**  | 
            ||
| 22 |      * {@inheritDoc} | 
            ||
| 23 | */  | 
            ||
| 24 | public function readFile(string $path)  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * Truly read from the file  | 
            ||
| 40 | *  | 
            ||
| 41 | * @param string $path  | 
            ||
| 42 | * @throws \RuntimeException if something goes wrong  | 
            ||
| 43 | * @return mixed  | 
            ||
| 44 | */  | 
            ||
| 45 | abstract protected function readFromFile($path);  | 
            ||
| 46 | }  | 
            ||
| 47 |