Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class GetRankingPoints extends AbstractController |
||
15 | { |
||
16 | private RankingProviderInterface $rankingProvider; |
||
17 | |||
18 | public function __construct( |
||
19 | #[Autowire(service: PlayerPlatformRankingProvider::class)] |
||
20 | RankingProviderInterface $rankingProvider |
||
21 | ) { |
||
22 | $this->rankingProvider = $rankingProvider; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param Platform $platform |
||
27 | * @param Request $request |
||
28 | * @return array |
||
29 | */ |
||
30 | public function __invoke(Platform $platform, Request $request): array |
||
36 | ] |
||
37 | ); |
||
40 |