| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 2 | public function addAction(string $action): Method |
|
| 20 | { |
||
| 21 | 2 | return $this->class |
|
| 22 | 2 | ->addMethod($action) |
|
| 23 | 2 | ->addComment( |
|
| 24 | 2 | 'Please, don\'t forget to configure the Route attribute or remove it and register the route manually.' |
|
| 25 | 2 | ) |
|
| 26 | 2 | ->setPublic() |
|
| 27 | 2 | ->addAttribute(Route::class, ['route' => 'path', 'name' => 'name']) |
|
| 28 | 2 | ->setReturnType(ResponseInterface::class); |
|
| 29 | } |
||
| 50 |