@@ -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 | { |
@@ -11,11 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | use Naneau\FileGen\Structure; |
| 13 | 13 | use Naneau\FileGen\Parameter\Parameter; |
| 14 | - |
|
| 15 | 14 | use Symfony\Component\Console\Helper\HelperInterface; |
| 16 | 15 | use Symfony\Component\Console\Helper\HelperSet; |
| 17 | 16 | use Symfony\Component\Console\Helper\QuestionHelper; |
| 18 | - |
|
| 19 | 17 | use Symfony\Component\Console\Input\InputInterface; |
| 20 | 18 | use Symfony\Component\Console\Output\OutputInterface; |
| 21 | 19 | use Symfony\Component\Console\Question\Question; |
@@ -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 | { |
@@ -10,9 +10,7 @@ |
||
| 10 | 10 | namespace Naneau\FileGen; |
| 11 | 11 | |
| 12 | 12 | use Naneau\FileGen\Parameterized; |
| 13 | - |
|
| 14 | 13 | use Naneau\FileGen\AccessRights; |
| 15 | - |
|
| 16 | 14 | use Naneau\FileGen\File\Contents as ContentGenerator; |
| 17 | 15 | use Naneau\FileGen\File\Contents\StringBased as StringContents; |
| 18 | 16 | |
@@ -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 | { |
@@ -10,14 +10,11 @@ |
||
| 10 | 10 | namespace Naneau\FileGen; |
| 11 | 11 | |
| 12 | 12 | use Naneau\FileGen\Parameterized; |
| 13 | - |
|
| 14 | 13 | use Naneau\FileGen\Directory; |
| 15 | 14 | use Naneau\FileGen\File; |
| 16 | 15 | use Naneau\FileGen\SymLink; |
| 17 | - |
|
| 18 | 16 | use Naneau\FileGen\Generator\Exception as GeneratorException; |
| 19 | 17 | use Naneau\FileGen\Generator\Exception\NodeExists as NodeExistsException; |
| 20 | - |
|
| 21 | 18 | use Symfony\Component\Filesystem\Filesystem; |
| 22 | 19 | use Symfony\Component\Filesystem\Exception\IOException as FilesystemIOException; |
| 23 | 20 | |
@@ -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 | { |
@@ -12,9 +12,7 @@ |
||
| 12 | 12 | use Naneau\FileGen\Directory; |
| 13 | 13 | use Naneau\FileGen\File; |
| 14 | 14 | use Naneau\FileGen\SymLink; |
| 15 | - |
|
| 16 | 15 | use Naneau\FileGen\Parameter\Set as ParameterSet; |
| 17 | - |
|
| 18 | 16 | use Naneau\FileGen\Structure\Exception as StructureException; |
| 19 | 17 | |
| 20 | 18 | /** |
@@ -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 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | namespace Naneau\FileGen\Test\Console; |
| 11 | 11 | |
| 12 | 12 | use Naneau\FileGen\Structure; |
| 13 | - |
|
| 14 | 13 | use Symfony\Component\Console\Command\Command; |
| 15 | 14 | use Symfony\Component\Console\Input\InputInterface; |
| 16 | 15 | use Symfony\Component\Console\Output\OutputInterface; |