@@ -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; |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @return PackageSchema |
|
| 90 | + * @return \keeko\framework\schema\PackageSchema |
|
| 91 | 91 | */ |
| 92 | 92 | protected function getPackage() { |
| 93 | 93 | return $this->package; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | abstract public function show(); |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @return HelperSet |
|
| 28 | + * @return \Symfony\Component\Console\Helper\HelperSet|null |
|
| 29 | 29 | */ |
| 30 | 30 | protected function getHelperSet() { |
| 31 | 31 | return $this->command->getHelperSet(); |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use keeko\tools\command\AbstractGenerateCommand; |
| 5 | 5 | use Symfony\Component\Console\Output\OutputInterface; |
| 6 | 6 | use Symfony\Component\Console\Input\InputInterface; |
| 7 | -use Symfony\Component\Console\Command\Command; |
|
| 8 | 7 | use Symfony\Component\Console\Input\ArrayInput; |
| 9 | 8 | |
| 10 | 9 | class MagicCommand extends AbstractGenerateCommand { |
@@ -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(); |
@@ -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(); |
@@ -59,6 +59,9 @@ |
||
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @return Project|null |
|
| 64 | + */ |
|
| 62 | 65 | private function getProject($packageName = null) { |
| 63 | 66 | if ($this->prj === null) { |
| 64 | 67 | if ($packageName === null) { |
@@ -64,7 +64,6 @@ discard block |
||
| 64 | 64 | * Creates a new package generator |
| 65 | 65 | * |
| 66 | 66 | * @param string $type |
| 67 | - * @param CommandService $this->serivce |
|
| 68 | 67 | * @return AbstractPackageGenerator |
| 69 | 68 | */ |
| 70 | 69 | public function createPackageGenerator($type) { |
@@ -139,7 +138,6 @@ discard block |
||
| 139 | 138 | * Creates a generator for the given json respose |
| 140 | 139 | * |
| 141 | 140 | * @param string $type |
| 142 | - * @param CommandService $this->service |
|
| 143 | 141 | * @return AbstractModelJsonResponderGenerator |
| 144 | 142 | */ |
| 145 | 143 | public function createModelJsonResponderGenerator($type) { |
@@ -10,11 +10,9 @@ |
||
| 10 | 10 | use keeko\tools\generator\responder\TwigHtmlResponderGenerator; |
| 11 | 11 | use keeko\tools\generator\Types; |
| 12 | 12 | use keeko\tools\helpers\QuestionHelperTrait; |
| 13 | -use keeko\tools\model\Relationship; |
|
| 14 | 13 | use keeko\tools\ui\ResponseUI; |
| 15 | 14 | use keeko\tools\utils\NamespaceResolver; |
| 16 | 15 | use phootwork\collection\Set; |
| 17 | -use phootwork\file\File; |
|
| 18 | 16 | use phootwork\lang\Text; |
| 19 | 17 | use Symfony\Component\Console\Input\InputArgument; |
| 20 | 18 | use Symfony\Component\Console\Input\InputInterface; |
@@ -246,6 +246,9 @@ |
||
| 246 | 246 | return $action; |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | + /** |
|
| 250 | + * @param string $type |
|
| 251 | + */ |
|
| 249 | 252 | private function generateRelationshipAction(Relationship $relationship, $type) { |
| 250 | 253 | $model = $relationship->getModel(); |
| 251 | 254 | $module = $this->package->getKeeko()->getModule(); |