1 | <?php |
||
26 | trait PathTrait |
||
27 | { |
||
28 | /** |
||
29 | * The base path for the Vars config and cache folders |
||
30 | * |
||
31 | * @var string $path |
||
32 | */ |
||
33 | public $path; |
||
34 | |||
35 | /** |
||
36 | * Get the path |
||
37 | * |
||
38 | * @return string The path |
||
39 | */ |
||
40 | 75 | public function getPath() |
|
44 | |||
45 | /** |
||
46 | * Set the Vars base path |
||
47 | * |
||
48 | * @param string $path The path to set |
||
49 | * @param boolean $check_writeable Check whether dir is writeable |
||
50 | |||
51 | * @throws \InvalidArgumentException If the path does not exist or is not writable |
||
52 | * |
||
53 | * @return \M1\Vars\Vars |
||
54 | */ |
||
55 | 86 | public function setPath($path, $check_writeable = false) |
|
71 | } |
||
72 |