@@ -11,31 +11,31 @@ |
||
11 | 11 | */ |
12 | 12 | interface RequestHandler |
13 | 13 | { |
14 | - /** |
|
15 | - * Check if the request is authorized to perform the action |
|
16 | - * |
|
17 | - * @param ServerRequestInterface $request |
|
18 | - * |
|
19 | - * @return bool |
|
20 | - */ |
|
21 | - public function authorized(ServerRequestInterface $request): bool; |
|
14 | + /** |
|
15 | + * Check if the request is authorized to perform the action |
|
16 | + * |
|
17 | + * @param ServerRequestInterface $request |
|
18 | + * |
|
19 | + * @return bool |
|
20 | + */ |
|
21 | + public function authorized(ServerRequestInterface $request): bool; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Check if the request is valid to perform the action |
|
25 | - * |
|
26 | - * @param ServerRequestInterface $request |
|
27 | - * |
|
28 | - * @return bool |
|
29 | - */ |
|
30 | - public function valid(ServerRequestInterface $request): bool; |
|
23 | + /** |
|
24 | + * Check if the request is valid to perform the action |
|
25 | + * |
|
26 | + * @param ServerRequestInterface $request |
|
27 | + * |
|
28 | + * @return bool |
|
29 | + */ |
|
30 | + public function valid(ServerRequestInterface $request): bool; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Perform the action that is requested |
|
34 | - * |
|
35 | - * @param ServerRequestInterface $request |
|
36 | - * @param ResponseInterface $response |
|
37 | - * |
|
38 | - * @return ResponseInterface |
|
39 | - */ |
|
40 | - public function perform(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface; |
|
32 | + /** |
|
33 | + * Perform the action that is requested |
|
34 | + * |
|
35 | + * @param ServerRequestInterface $request |
|
36 | + * @param ResponseInterface $response |
|
37 | + * |
|
38 | + * @return ResponseInterface |
|
39 | + */ |
|
40 | + public function perform(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface; |
|
41 | 41 | } |