| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ObjectEntryRepository extends ServiceEntityRepository |
||
| 12 | { |
||
| 13 | 10 | public function __construct(ManagerRegistry $registry) |
|
| 14 | { |
||
| 15 | 10 | parent::__construct($registry, ObjectEntry::class); |
|
| 16 | 10 | } |
|
| 17 | |||
| 18 | 9 | public function save(ObjectEntry $entry): void |
|
| 22 | 9 | } |
|
| 23 | |||
| 24 | 9 | public function deleteAll(): void |
|
| 25 | { |
||
| 26 | 9 | $this->createQueryBuilder('e') |
|
| 27 | 9 | ->delete() |
|
| 28 | 9 | ->getQuery() |
|
| 29 | 9 | ->execute(); |
|
| 30 | 9 | } |
|
| 31 | |||
| 32 | 8 | public function findByKeyAtTime(string $key, \DateTime $time): ?ObjectEntry |
|
| 42 | } |
||
| 43 | } |
||
| 44 |