1 | <?php |
||
21 | class Root extends Directory |
||
22 | { |
||
23 | const BASENAME = '/'; |
||
24 | protected $scheme; |
||
25 | |||
26 | /** |
||
27 | * Class constructor. |
||
28 | */ |
||
29 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Defined to prevent setting parent on Root. |
||
37 | * |
||
38 | * @param Directory $parent |
||
39 | * |
||
40 | * @throws \LogicException |
||
41 | */ |
||
42 | protected function setParent(Directory $parent) |
||
46 | |||
47 | /** |
||
48 | * Set root scheme for use in path method. |
||
49 | * |
||
50 | * @param string $scheme |
||
51 | */ |
||
52 | public function setScheme($scheme) |
||
57 | |||
58 | /** |
||
59 | * Returns URL to file. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function path() |
||
67 | |||
68 | public function url() |
||
76 | } |
||
77 |