| 1 | <?php |
||
| 15 | trait EntityManagerConsumerTrait { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The entity manager. |
||
| 19 | * |
||
| 20 | * @var \TheSportsDb\Entity\EntityManagerInterface |
||
| 21 | */ |
||
| 22 | protected $entityManager; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Set the entity manager. |
||
| 26 | * |
||
| 27 | * @param \TheSportsDb\Entity\EntityManagerInterface $entityManager |
||
| 28 | * The entity manager to set. |
||
| 29 | * |
||
| 30 | * @throws \Exception |
||
| 31 | * If the entity manager is already set. |
||
| 32 | */ |
||
| 33 | 2 | public function setEntityManager(EntityManagerInterface $entityManager) { |
|
| 39 | } |
||
| 40 |