| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class ResponseRepository extends ServiceEntityRepository |
||
| 18 | { |
||
| 19 | public function __construct(ManagerRegistry $registry) |
||
| 20 | { |
||
| 21 | parent::__construct($registry, Response::class); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** @SuppressWarnings(PHPMD.BooleanArgumentFlag) */ |
||
| 25 | public function save(Response $entity, bool $flush = false): void |
||
| 26 | { |
||
| 27 | $this->getEntityManager()->persist($entity); |
||
| 28 | |||
| 29 | if ($flush) { |
||
| 30 | $this->getEntityManager()->flush(); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | /** @SuppressWarnings(PHPMD.BooleanArgumentFlag) */ |
||
| 35 | public function remove(Response $entity, bool $flush = false): void |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 |