| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class QuestionDoctrineRepository extends AbstractDoctrineRepository implements QuestionRepository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @inheritdoc |
||
| 12 | */ |
||
| 13 | public function getRepositoryName(): string |
||
| 14 | { |
||
| 15 | return Question::class; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param Question $question |
||
| 20 | * @throws \Doctrine\ORM\ORMException |
||
| 21 | * @throws \Doctrine\ORM\OptimisticLockException |
||
| 22 | */ |
||
| 23 | public function save(Question $question): void |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param UuidInterface $id |
||
| 31 | * @return null|Question |
||
| 32 | */ |
||
| 33 | public function getById(UuidInterface $id): ?Question |
||
| 45 |