| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class NPCLogRepository extends EntityRepository implements NPCLogRepositoryInterface |
||
| 16 | { |
||
| 17 | public function getRecent(): array |
||
| 18 | { |
||
| 19 | return $this->findBy( |
||
| 20 | [], |
||
| 21 | ['id' => 'desc'], |
||
| 22 | 10 |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function prototype(): NPCLogInterface |
||
| 29 | } |
||
| 30 | |||
| 31 | public function save(NPCLogInterface $npclog): void |
||
| 32 | { |
||
| 33 | $em = $this->getEntityManager(); |
||
| 34 | |||
| 35 | $em->persist($npclog); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function delete(NPCLogInterface $npclog): void |
||
| 39 | { |
||
| 40 | $em = $this->getEntityManager(); |
||
| 41 | |||
| 42 | $em->remove($npclog); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function truncateAllEntities(): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 |