| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class ArtistRepository extends EntityRepository implements ArtistRepositoryInterface |
||
| 15 | { |
||
| 16 | 1 | public function prototype(): ArtistInterface |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | public function save(ArtistInterface $artist): void |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function delete(ArtistInterface $artist): void |
|
| 28 | { |
||
| 29 | 1 | $this->getEntityManager()->remove($artist); |
|
| 30 | 1 | $this->getEntityManager()->flush(); |
|
| 31 | 1 | } |
|
| 32 | |||
| 33 | public function findByMbId(string $mbid): ?ArtistInterface |
||
| 34 | { |
||
| 35 | return $this->findOneBy([ |
||
| 36 | 'mbid' => $mbid, |
||
| 37 | ]); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getAllHavingNoRelations(): iterable |
||
| 53 | } |
||
| 54 | } |
||
| 55 |