1 | <?php |
||
27 | class File |
||
28 | { |
||
29 | /** |
||
30 | * Root directory of app |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $root; |
||
35 | |||
36 | /** |
||
37 | * This file's locations |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | private $paths = []; |
||
42 | |||
43 | /** |
||
44 | * Initialize the root dir and set the path |
||
45 | * |
||
46 | * @param string $filename |
||
47 | */ |
||
48 | public function __construct($filename) |
||
59 | |||
60 | /** |
||
61 | * Returns the json file contents as an array |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | public function getJson() |
||
74 | } |
||
75 |