1 | <?php |
||
30 | abstract class ReaderAbstract extends StaticAbstract implements ReaderInterface |
||
31 | { |
||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | */ |
||
35 | public static function readFile(/*# string */ $path) |
||
50 | |||
51 | /** |
||
52 | * Check path existance & readability |
||
53 | * |
||
54 | * @param string $path |
||
55 | * @throws NotFoundException if $path not found |
||
56 | * @throws RuntimeException if $path not readable |
||
57 | * @access protected |
||
58 | * @static |
||
59 | */ |
||
60 | protected static function checkPath(/*# string */ $path) |
||
76 | |||
77 | /** |
||
78 | * Get custom error |
||
79 | * |
||
80 | * @param string $path |
||
81 | * @access protected |
||
82 | * @static |
||
83 | */ |
||
84 | protected static function getError(/*# string */ $path)/*#: string */ |
||
89 | |||
90 | /** |
||
91 | * Really read from file |
||
92 | * |
||
93 | * @param string $path |
||
94 | * @return mixed |
||
95 | * @access protected |
||
96 | * @static |
||
97 | */ |
||
98 | protected static function readFromFile($path) |
||
101 | } |
||
102 |