| Total Complexity | 4 | 
| Total Lines | 45 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 12 | class PointsProvider implements PointsProviderInterface | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * @var EntityManagerInterface | ||
| 16 | */ | ||
| 17 | private $entityManager; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @var PointsInterface | ||
| 21 | */ | ||
| 22 | private $points; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @param EntityManagerInterface $entityManager | ||
| 26 | * @param PointsInterface $points | ||
| 27 | */ | ||
| 28 | public function __construct(EntityManagerInterface $entityManager, PointsInterface $points) | ||
| 29 |     { | ||
| 30 | $this->entityManager = $entityManager; | ||
| 31 | $this->points = $points; | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | /** | ||
| 36 | * @param UserInterface $user | ||
| 37 | * @return int | ||
| 38 | */ | ||
| 39 | public function get(UserInterface $user) : int | ||
| 57 | } | ||
| 58 | |||
| 60 | } |