Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class EditShortUrlAction extends AbstractRestAction |
||
16 | { |
||
17 | protected const ROUTE_PATH = '/short-urls/{shortCode}'; |
||
18 | protected const ROUTE_ALLOWED_METHODS = [self::METHOD_PATCH, self::METHOD_PUT]; |
||
19 | |||
20 | private ShortUrlServiceInterface $shortUrlService; |
||
21 | |||
22 | 3 | public function __construct(ShortUrlServiceInterface $shortUrlService) |
|
25 | 3 | } |
|
26 | |||
27 | 3 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
36 |