@@ -91,6 +91,9 @@ |
||
91 | 91 | ; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param string $name |
|
96 | + */ |
|
94 | 97 | protected function runCommand($name, InputInterface $input, OutputInterface $output) { |
95 | 98 | // return whether command has already executed |
96 | 99 | $app = $this->getApplication(); |
@@ -283,7 +283,6 @@ |
||
283 | 283 | /** |
284 | 284 | * Generates an action. |
285 | 285 | * |
286 | - * @param string $actionName |
|
287 | 286 | * @param ActionSchema $action the action node from composer.json |
288 | 287 | */ |
289 | 288 | private function generateAction($actionName) { |
@@ -13,9 +13,6 @@ |
||
13 | 13 | use keeko\tools\generator\action\ToManyRelationshipUpdateActionGenerator; |
14 | 14 | use keeko\tools\generator\action\ToOneRelationshipReadActionGenerator; |
15 | 15 | use keeko\tools\generator\action\ToOneRelationshipUpdateActionGenerator; |
16 | -use keeko\tools\generator\domain\DomainGenerator; |
|
17 | -use keeko\tools\generator\domain\DomainTraitGenerator; |
|
18 | -use keeko\tools\generator\domain\ReadOnlyDomainTraitGenerator; |
|
19 | 16 | use keeko\tools\generator\GeneratorFactory; |
20 | 17 | use keeko\tools\helpers\QuestionHelperTrait; |
21 | 18 | use keeko\tools\utils\NamespaceResolver; |
@@ -14,6 +14,9 @@ |
||
14 | 14 | /** @var Table */ |
15 | 15 | private $foreign; |
16 | 16 | |
17 | + /** |
|
18 | + * @param \keeko\tools\services\CommandService $service |
|
19 | + */ |
|
17 | 20 | public function __construct($service, Table $model, Table $foreign) { |
18 | 21 | parent::__construct($service); |
19 | 22 | $this->model = $model; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * Adds authors to the docblock of the given struct |
63 | 63 | * |
64 | 64 | * @param AbstractPhpStruct $struct |
65 | - * @param array $package |
|
65 | + * @param PackageSchema $package |
|
66 | 66 | */ |
67 | 67 | public function addAuthors(AbstractPhpStruct $struct, PackageSchema $package) { |
68 | 68 | $docblock = $struct->getDocblock(); |
@@ -14,6 +14,9 @@ |
||
14 | 14 | /** @var Table */ |
15 | 15 | private $foreign; |
16 | 16 | |
17 | + /** |
|
18 | + * @param \keeko\tools\services\CommandService $service |
|
19 | + */ |
|
17 | 20 | public function __construct($service, Table $model, Table $foreign) { |
18 | 21 | parent::__construct($service); |
19 | 22 | $this->model = $model; |
@@ -1,14 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace keeko\tools\command; |
3 | 3 | |
4 | -use keeko\framework\schema\ActionSchema; |
|
5 | -use keeko\framework\utils\NameUtils; |
|
6 | 4 | use keeko\tools\generator\domain\DomainGenerator; |
7 | 5 | use keeko\tools\generator\domain\DomainTraitGenerator; |
8 | 6 | use keeko\tools\generator\domain\ReadOnlyDomainTraitGenerator; |
9 | 7 | use keeko\tools\helpers\QuestionHelperTrait; |
10 | -use keeko\tools\utils\NamespaceResolver; |
|
11 | -use phootwork\lang\Text; |
|
12 | 8 | use Propel\Generator\Model\Table; |
13 | 9 | use Symfony\Component\Console\Input\InputArgument; |
14 | 10 | use Symfony\Component\Console\Input\InputInterface; |