| 1 | <?php  | 
            ||
| 17 | class ORM implements ServiceInterface  | 
            ||
| 18 | { | 
            ||
| 19 | |||
| 20 | /** @var EntityManager */  | 
            ||
| 21 | protected $entityManager;  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * ORM constructor.  | 
            ||
| 25 | * @param EntityManager $entityManager  | 
            ||
| 26 | */  | 
            ||
| 27 | public function __construct(EntityManager $entityManager)  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * @param string $entity  | 
            ||
| 34 | * @param integer|null $primaryKey  | 
            ||
| 35 | * @return EntityFetcher  | 
            ||
| 36 | * @codeCoverageIgnore  | 
            ||
| 37 | */  | 
            ||
| 38 | public function fetch(string $entity, $primaryKey = null)  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * @param Entity $entity  | 
            ||
| 45 | * @codeCoverageIgnore  | 
            ||
| 46 | */  | 
            ||
| 47 | public function save(Entity $entity)  | 
            ||
| 51 | |||
| 52 | }  |