| Total Complexity | 6 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FreeTimespanRepository extends AbstractTransactionalRepository implements FreeTimespanRepositoryInterface { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @inheritDoc |
||
| 12 | */ |
||
| 13 | public function findAllByDate(DateTime $dateTime): array { |
||
| 14 | return $this->em->getRepository(FreeTimespan::class) |
||
| 15 | ->findBy([ |
||
| 16 | 'date' => $dateTime |
||
| 17 | ]); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritDoc |
||
| 22 | */ |
||
| 23 | public function findAll(): array { |
||
| 26 | } |
||
| 27 | |||
| 28 | public function persist(FreeTimespan $timespan): void { |
||
| 31 | } |
||
| 32 | |||
| 33 | public function removeAll(?DateTime $dateTime): void { |
||
| 47 | } |
||
| 48 | |||
| 49 | public function removeBetween(DateTime $start, DateTime $end): int { |
||
| 58 | } |
||
| 59 | } |