@@ -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(); |
@@ -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(); |
@@ -281,7 +281,6 @@ discard block |
||
281 | 281 | /** |
282 | 282 | * Generates an action. |
283 | 283 | * |
284 | - * @param string $actionName |
|
285 | 284 | * @param ActionSchema $action the action node from composer.json |
286 | 285 | */ |
287 | 286 | private function generateNamed($actionName) { |
@@ -295,7 +294,7 @@ discard block |
||
295 | 294 | /** |
296 | 295 | * Generates the action for the package |
297 | 296 | * |
298 | - * @param unknown $actionName |
|
297 | + * @param string $actionName |
|
299 | 298 | * @throws \RuntimeException |
300 | 299 | * @return ActionSchema |
301 | 300 | */ |
@@ -11,9 +11,8 @@ |
||
11 | 11 | /** |
12 | 12 | * Generates an action trait with the given name as classname |
13 | 13 | * |
14 | - * @param string $name |
|
15 | 14 | * @param ActionSchema $action |
16 | - * @return PhpTrait |
|
15 | + * @return PhpClass |
|
17 | 16 | */ |
18 | 17 | public function generate(ActionSchema $action) { |
19 | 18 | $class = PhpClass::create($action->getClass()) |
@@ -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') |