@@ -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') |