| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class PageRepository extends ServiceEntityRepository |
||
| 14 | { |
||
| 15 | public function __construct(ManagerRegistry $registry) |
||
| 16 | { |
||
| 17 | parent::__construct($registry, Page::class); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function update(Page $page): void |
||
| 21 | { |
||
| 22 | $this->getEntityManager()->persist($page); |
||
| 23 | $this->getEntityManager()->flush(); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function delete(Page $page = null): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |