1 | <?php |
||
11 | trait PathTrait |
||
12 | { |
||
13 | /** |
||
14 | * The base path for the Vars config and cache folders |
||
15 | * |
||
16 | * @var string $path |
||
17 | */ |
||
18 | public $path; |
||
19 | |||
20 | /** |
||
21 | * Get the path |
||
22 | * |
||
23 | * @return string The path |
||
24 | */ |
||
25 | 69 | public function getPath() |
|
29 | |||
30 | /** |
||
31 | * Set the Vars base path |
||
32 | * |
||
33 | * @param string $path The path to set |
||
34 | * |
||
35 | * @throws \InvalidArgumentException If the path does not exist or is not writable |
||
36 | * |
||
37 | * @return \M1\Vars\Vars |
||
38 | */ |
||
39 | 80 | public function setPath($path, $check_writeable = false) |
|
55 | } |