1 | <?php |
||
19 | class FileLocator |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $file; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param string $file |
||
30 | */ |
||
31 | public function __construct($file) |
||
39 | |||
40 | /** |
||
41 | * Read file content. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function readFile() |
||
49 | |||
50 | /** |
||
51 | * Get file. |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getFile() |
||
59 | |||
60 | /** |
||
61 | * Get file extension. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getExtension() |
||
69 | } |
||
70 |