| Total Complexity | 5 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 14 | abstract class AbstractRankingProvider implements RankingProviderInterface | ||
| 15 | { | ||
| 16 | protected EntityManagerInterface $em; | ||
| 17 | protected UserToPlayerTransformer $userToPlayerTransformer; | ||
| 18 | |||
| 19 | public function __construct( | ||
| 20 | EntityManagerInterface $em, | ||
| 21 | UserToPlayerTransformer $userToPlayerTransformer | ||
| 22 |     ) { | ||
| 23 | $this->em = $em; | ||
| 24 | $this->userToPlayerTransformer = $userToPlayerTransformer; | ||
| 25 | } | ||
| 26 | |||
| 27 | /** | ||
| 28 | * @throws ORMException | ||
| 29 | */ | ||
| 30 | protected function getPlayer($user = null): ?Player | ||
| 36 | } | ||
| 37 | |||
| 38 | /** | ||
| 39 | * @throws ORMException | ||
| 40 | */ | ||
| 41 | protected function getTeam($user = null): ?Team | ||
| 50 |