| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 27.27% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ServiceProviderConfirmationRepository implements ServiceProviderConfirmationRepositoryInterface { |
||
| 11 | |||
| 12 | private $em; |
||
| 13 | |||
| 14 | 1 | public function __construct(EntityManagerInterface $entityManager) { |
|
| 15 | 1 | $this->em = $entityManager; |
|
| 16 | 1 | } |
|
| 17 | |||
| 18 | public function findOneByUserAndServiceProvider(User $user, ServiceProvider $serviceProvider): ?ServiceProviderConfirmation { |
||
| 19 | return $this->em->getRepository(ServiceProviderConfirmation::class) |
||
| 20 | ->findOneBy([ |
||
| 21 | 'user' => $user, |
||
| 22 | 'serviceProvider' => $serviceProvider |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function persist(ServiceProviderConfirmation $confirmation) { |
||
| 29 | } |
||
| 30 | } |