1 | <?php |
||
20 | class ContactUsAction |
||
21 | { |
||
22 | /** |
||
23 | * @var Template $template |
||
24 | */ |
||
25 | protected $template; |
||
26 | |||
27 | /** |
||
28 | * @var ContactUsService $contactUsService |
||
29 | */ |
||
30 | protected $contactUsService; |
||
31 | |||
32 | /** |
||
33 | * @var RouterInterface $router |
||
34 | */ |
||
35 | protected $router; |
||
36 | |||
37 | /** |
||
38 | * ContactUsAction constructor. |
||
39 | * |
||
40 | * @param Template $template |
||
41 | * @param ContactUsService $contactUsService |
||
42 | * @param RouterInterface $router |
||
43 | */ |
||
44 | public function __construct( |
||
52 | |||
53 | /** |
||
54 | * Executed when action is invoked. |
||
55 | * |
||
56 | * @param Request $request |
||
57 | * @param Response $response |
||
58 | * @param callable $next |
||
59 | * |
||
60 | * @throws \Exception |
||
61 | * |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function __invoke(Request $request, Response $response, callable $next = null) |
||
70 | |||
71 | /** |
||
72 | * @param Request $request |
||
73 | * @param Response $response |
||
74 | * |
||
75 | * @return Response |
||
76 | * |
||
77 | * @throws FilterException |
||
78 | * @throws \Exception |
||
79 | */ |
||
80 | public function post(Request $request, Response $response) |
||
104 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.