Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class CLpItemRepository extends ServiceEntityRepository |
||
16 | { |
||
17 | use NestedTreeRepositoryTrait; |
||
18 | use NonResourceRepository; |
||
19 | |||
20 | public function __construct(ManagerRegistry $registry) |
||
25 | } |
||
26 | |||
27 | public function create(CLpItem $item): void |
||
31 | } |
||
32 | |||
33 | public function getRootItem(int $lpId): ?CLpItem |
||
34 | { |
||
35 | return $this->findOneBy([ |
||
36 | 'path' => 'root', |
||
37 | 'lp' => $lpId, |
||
38 | ]); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return CLpItem[] |
||
43 | */ |
||
44 | public function getTree(int $lpId) |
||
56 | } |
||
57 | } |
||
58 |