| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 35% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class ApplicationRepository implements ApplicationRepositoryInterface { |
||
| 9 | |||
| 10 | private $em; |
||
| 11 | |||
| 12 | 12 | public function __construct(EntityManagerInterface $entityManager) { |
|
| 13 | 12 | $this->em = $entityManager; |
|
| 14 | 12 | } |
|
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritDoc |
||
| 18 | */ |
||
| 19 | public function findAll() { |
||
| 20 | return $this->em |
||
| 21 | ->getRepository(Application::class) |
||
| 22 | ->findBy([], [ |
||
| 23 | 'name' => 'asc' |
||
| 24 | ]); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function persist(Application $application) { |
||
| 30 | } |
||
| 31 | |||
| 32 | public function remove(Application $application) { |
||
| 35 | } |
||
| 36 | |||
| 37 | 2 | public function findOneByApiKey($key): ?Application { |
|
| 41 | } |
||
| 42 | } |