1 | <?php |
||
19 | class File |
||
20 | { |
||
21 | /** |
||
22 | * @param $path |
||
23 | * |
||
24 | * @return mixed |
||
25 | */ |
||
26 | 45 | public static function extension($path) |
|
30 | |||
31 | /** |
||
32 | * @param $path |
||
33 | * |
||
34 | * @return bool |
||
35 | */ |
||
36 | 39 | public static function exists($path) |
|
40 | |||
41 | /** |
||
42 | * @param $path |
||
43 | * |
||
44 | * @return string |
||
45 | * |
||
46 | * @throws FileDoesNotExistException |
||
47 | */ |
||
48 | 24 | public static function contents($path) |
|
56 | |||
57 | /** |
||
58 | * @param $path |
||
59 | * |
||
60 | * @return mixed |
||
61 | * |
||
62 | * @throws FileDoesNotExistException |
||
63 | */ |
||
64 | 9 | public static function get($path) |
|
72 | |||
73 | /** |
||
74 | * @param $path |
||
75 | * @param $contents |
||
76 | * |
||
77 | * @return bool |
||
78 | */ |
||
79 | 24 | public static function put($path, $contents) |
|
83 | } |
||
84 |