1 | <?php |
||
10 | class Directory |
||
11 | { |
||
12 | /** |
||
13 | * Template directory path. |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $path; |
||
17 | |||
18 | /** |
||
19 | * Create new Directory instance. |
||
20 | * @param string $path |
||
21 | */ |
||
22 | 168 | public function __construct($path = null) |
|
26 | |||
27 | /** |
||
28 | * Set path to templates directory. |
||
29 | * @param string|null $path Pass null to disable the default directory. |
||
30 | * @return Directory |
||
31 | */ |
||
32 | 168 | public function set($path) |
|
44 | |||
45 | /** |
||
46 | * Get path to templates directory. |
||
47 | * @return string |
||
48 | */ |
||
49 | 82 | public function get() |
|
53 | } |
||
54 |