| Total Complexity | 4 | 
| Total Lines | 32 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | class ControllerDeclaration extends AbstractDeclaration implements HasInstructions  | 
            ||
| 16 | { | 
            ||
| 17 | public const TYPE = 'controller';  | 
            ||
| 18 | |||
| 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 | }  | 
            ||
| 30 | |||
| 31 | 1 | public function addPrototypeTrait(): void  | 
            |
| 35 | }  | 
            ||
| 36 | |||
| 37 | 4 | public function declare(): void  | 
            |
| 41 | }  | 
            ||
| 42 | |||
| 43 | public function getInstructions(): array  | 
            ||
| 50 |