| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class FavoriteRepository extends EntityRepository implements FavoriteRepositoryInterface |
||
| 17 | { |
||
| 18 | 1 | public function prototype(): FavoriteInterface |
|
| 19 | { |
||
| 20 | 1 | return new Favorite(); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function save(FavoriteInterface $favorite): void |
|
| 24 | { |
||
| 25 | 1 | $em = $this->getEntityManager(); |
|
| 26 | |||
| 27 | 1 | $em->persist($favorite); |
|
| 28 | 1 | $em->flush(); |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function delete(FavoriteInterface $favorite): void |
|
| 37 | } |
||
| 38 | } |
||
| 39 |