@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * |
| 36 | 36 | * @param string $name |
| 37 | 37 | * @param int $mode mode in octal (0XXX) |
| 38 | - * @return void |
|
| 38 | + * @return Node |
|
| 39 | 39 | **/ |
| 40 | 40 | public function __construct($name, $mode = null) |
| 41 | 41 | { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * @param string $name |
| 43 | 43 | * @param ContentGenerator|string $contents |
| 44 | 44 | * @param int $mode mode in octal 0XXX |
| 45 | - * @return void |
|
| 45 | + * @return Node |
|
| 46 | 46 | **/ |
| 47 | 47 | public function __construct($name, $contents = '', $mode = null) |
| 48 | 48 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * Set the contents of the file |
| 55 | 55 | * |
| 56 | - * @param ContentGenerator|string $contents |
|
| 56 | + * @param string $contents |
|
| 57 | 57 | * @return self |
| 58 | 58 | */ |
| 59 | 59 | public function setContents($contents) |
@@ -73,7 +73,6 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * Generate a Structure on disk |
| 75 | 75 | * |
| 76 | - * @param Structure $directory |
|
| 77 | 76 | * @return bool |
| 78 | 77 | **/ |
| 79 | 78 | public function generate(Structure $structure) |
@@ -158,7 +157,7 @@ discard block |
||
| 158 | 157 | * Create a node |
| 159 | 158 | * |
| 160 | 159 | * @param Node $node |
| 161 | - * @return bool |
|
| 160 | + * @return Generator |
|
| 162 | 161 | **/ |
| 163 | 162 | private function createNode(Node $node) |
| 164 | 163 | { |
@@ -185,7 +184,7 @@ discard block |
||
| 185 | 184 | * Create a file |
| 186 | 185 | * |
| 187 | 186 | * @param File $file |
| 188 | - * @return bool |
|
| 187 | + * @return Generator |
|
| 189 | 188 | **/ |
| 190 | 189 | private function createFile(File $file) |
| 191 | 190 | { |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | /** |
| 130 | 130 | * Set the default value |
| 131 | 131 | * |
| 132 | - * @param mixed $defaultValue |
|
| 132 | + * @param string|null $defaultValue |
|
| 133 | 133 | * @return Parameter |
| 134 | 134 | */ |
| 135 | 135 | public function setDefaultValue($defaultValue) |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Constructor |
| 40 | 40 | * |
| 41 | - * @return void |
|
| 41 | + * @return Structure |
|
| 42 | 42 | **/ |
| 43 | 43 | public function __construct() |
| 44 | 44 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * Create (and add) a parent directory for a path |
| 147 | 147 | * |
| 148 | 148 | * @param string $name |
| 149 | - * @return void |
|
| 149 | + * @return Directory |
|
| 150 | 150 | **/ |
| 151 | 151 | private function parentDirectory($name) |
| 152 | 152 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @param string $from endpoint (what the link points to) |
| 36 | 36 | * @param string $to used as $name for Node |
| 37 | - * @return void |
|
| 37 | + * @return Node |
|
| 38 | 38 | **/ |
| 39 | 39 | public function __construct($from, $to) |
| 40 | 40 | { |