Total Complexity | 5 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ValidationTokenRepository extends ServiceEntityRepository |
||
14 | { |
||
15 | public function __construct(ManagerRegistry $registry) |
||
18 | } |
||
19 | |||
20 | public function save(ValidationToken $entity, bool $flush = false): void |
||
21 | { |
||
22 | $this->getEntityManager()->persist($entity); |
||
23 | |||
24 | if ($flush) { |
||
25 | $this->getEntityManager()->flush(); |
||
26 | } |
||
27 | } |
||
28 | |||
29 | public function remove(ValidationToken $entity, bool $flush = false): void |
||
35 | } |
||
36 | } |
||
38 |