1 | <?php |
||
15 | class Directory extends FixedFDirectory |
||
16 | { |
||
17 | /** |
||
18 | * Get the objects inside the directory. |
||
19 | * |
||
20 | * @return FSObject[] |
||
21 | */ |
||
22 | 48 | public function contents() : array |
|
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 4 | public function mimetype() : ?string |
|
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function toDirectory() |
||
47 | |||
48 | /** |
||
49 | * See documentation of FDirectory. |
||
50 | * |
||
51 | * @return FDirectory<File> |
||
|
|||
52 | */ |
||
53 | 40 | public function unfix() : FDirectory |
|
59 | |||
60 | /** |
||
61 | * Create a directory structure with an anamorphism an insert it in place of |
||
62 | * this directory. |
||
63 | * |
||
64 | * This is for INTERNAL use, use unfold($start_value)->with($unfolder) instead. |
||
65 | * |
||
66 | * @param mixed $start_value |
||
67 | * @throws \LogicException When generated root node is a file. |
||
68 | */ |
||
69 | 5 | public function insertByAna(\Closure $unfolder, $start_value) : void |
|
91 | |||
92 | /** |
||
93 | * Make a directory when unfolding a directory structure via Directory::unfold. |
||
94 | * |
||
95 | * @param Flightcontrol $flightcontrol |
||
96 | * @param string $name |
||
97 | * @param array $content |
||
98 | * @return FDirectory<a> |
||
99 | */ |
||
100 | 5 | public static function makeFDirectory(Flightcontrol $flightcontrol, string $name, array $content) : FDirectory |
|
109 | |||
110 | /** |
||
111 | * Make a file when unfolding a directory structure via Directory::unfold. |
||
112 | * |
||
113 | * @param Flightcontrol $flightcontrol |
||
114 | * @param string $name |
||
115 | * @param string $content |
||
116 | * @return File |
||
117 | */ |
||
118 | 5 | public static function makeFile(Flightcontrol $flightcontrol, string $name, string $content) : VirtualFile |
|
122 | } |
||
123 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.