| 1 | <?php |
||
| 9 | final class EntityToIdNormalizer |
||
| 10 | { |
||
| 11 | /** @var ManagerRegistry */ |
||
| 12 | private $registry; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * EntityToIdConverter constructor. |
||
| 16 | * |
||
| 17 | * @param ManagerRegistry $registry |
||
| 18 | */ |
||
| 19 | 21 | public function __construct(ManagerRegistry $registry) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param $entity |
||
| 26 | * |
||
| 27 | * @return mixed|array |
||
| 28 | */ |
||
| 29 | 7 | public function normalize($entity) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param mixed|array $identifier |
||
| 45 | * @param string $class |
||
| 46 | * |
||
| 47 | * @return object |
||
| 48 | * |
||
| 49 | * @throws \Doctrine\ORM\ORMException |
||
| 50 | */ |
||
| 51 | 1 | public function denormalize($identifier, $class) |
|
| 65 | } |
||
| 66 |