@@ -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(); |
@@ -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; |
@@ -32,6 +32,10 @@ |
||
| 32 | 32 | ); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $name |
|
| 37 | + * @param string $body |
|
| 38 | + */ |
|
| 35 | 39 | protected function generatePayloadMethod($name, $body) { |
| 36 | 40 | return PhpMethod::create($name) |
| 37 | 41 | ->addParameter(PhpParameter::create('request') |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Add default blank methods |
| 11 | 11 | * |
| 12 | - * @param PhpClass $class |
|
| 13 | 12 | */ |
| 14 | 13 | public function generate(ActionSchema $action) { |
| 15 | 14 | $class = $this->generateClass($action); |