| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class GlobalVisitsAction extends AbstractRestAction |
||
| 14 | { |
||
| 15 | protected const ROUTE_PATH = '/visits'; |
||
| 16 | protected const ROUTE_ALLOWED_METHODS = [self::METHOD_GET]; |
||
| 17 | |||
| 18 | private VisitsStatsHelperInterface $statsHelper; |
||
| 19 | |||
| 20 | 1 | public function __construct(VisitsStatsHelperInterface $statsHelper) |
|
| 21 | { |
||
| 22 | 1 | $this->statsHelper = $statsHelper; |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
| 29 | ]); |
||
| 30 | } |
||
| 32 |