| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class EntityToIdTransformer implements DataTransformerInterface |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var ObjectManager |
||
| 14 | */ |
||
| 15 | protected $objectManager; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $class; |
||
| 21 | |||
| 22 | public function __construct(ObjectManager $objectManager, $class) |
||
| 26 | } |
||
| 27 | |||
| 28 | public function transform($entity) |
||
| 34 | } |
||
| 35 | |||
| 36 | public function reverseTransform($id) |
||
| 50 |