Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | trait EntityManagerTrait { |
||
23 | |||
24 | /** |
||
25 | * Entity manager. |
||
26 | * |
||
27 | * @var EntityManagerInterface|null |
||
28 | */ |
||
29 | private $entityManager; |
||
30 | |||
31 | /** |
||
32 | * Get the entity manager. |
||
33 | * |
||
34 | * @return EntityManagerInterface|null Returns the entity manager. |
||
35 | */ |
||
36 | public function getEntityManager(): ?EntityManagerInterface { |
||
37 | return $this->entityManager; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Set the entity manager. |
||
42 | * |
||
43 | * @param EntityManagerInterface|null $entityManager The entity manager. |
||
44 | * @return self Returns this instance. |
||
45 | */ |
||
46 | protected function setEntityManager(?EntityManagerInterface $entityManager): self { |
||
49 | } |
||
50 | } |
||
51 |