1: <?php
2:
3: namespace PHPixie\Filesystem;
4:
5: class Root
6: {
7: protected $path;
8:
9: public function __construct($path)
10: {
11: if(substr($path, -1) !== '/') {
12: $path.= '/';
13: }
14:
15: $this->path = $path;
16: }
17:
18: public function path($path = null)
19: {
20: return $this->path.$path;
21: }
22: }
23: