1 | <?php |
||
9 | abstract class Extractor implements ExtractorInterface |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | public static function fromFile($file, Translations $translations, array $options = []) |
||
21 | |||
22 | /** |
||
23 | * Checks and returns all files. |
||
24 | * |
||
25 | * @param string|array $file The file/s |
||
26 | * |
||
27 | * @return array The file paths |
||
28 | */ |
||
29 | protected static function getFiles($file) |
||
59 | |||
60 | /** |
||
61 | * Reads and returns the content of a file. |
||
62 | * |
||
63 | * @param string $file |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | protected static function readFile($file) |
||
80 | } |
||
81 |