Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class BuoyRepository extends EntityRepository implements BuoyRepositoryInterface |
||
16 | { |
||
17 | public function prototype(): BuoyInterface |
||
18 | { |
||
19 | return new Buoy(); |
||
20 | } |
||
21 | |||
22 | public function save(BuoyInterface $buoy): void |
||
23 | { |
||
24 | $em = $this->getEntityManager(); |
||
25 | |||
26 | $em->persist($buoy); |
||
27 | } |
||
28 | |||
29 | public function delete(BuoyInterface $buoy): void |
||
30 | { |
||
31 | $em = $this->getEntityManager(); |
||
32 | |||
33 | $em->remove($buoy); |
||
34 | } |
||
35 | |||
36 | public function findByMapId(int $mapId): array |
||
39 | } |
||
40 | |||
41 | public function findBySysMapId(int $sysMapId): array |
||
44 | } |
||
45 | |||
46 | public function findByUserId(int $userId): array |
||
49 | } |
||
50 | } |