Sonata\ProductBundle\Model\BaseProductProvider::getProductFromRaw PHP Метод

getProductFromRaw() публичный Метод

public getProductFromRaw ( Sonata\Component\Order\OrderElementInterface $orderElement, string $type, string $format = 'json' ) : Sonata\Component\Product\ProductInterface
$orderElement Sonata\Component\Order\OrderElementInterface
$type string
$format string
Результат Sonata\Component\Product\ProductInterface
    public function getProductFromRaw(OrderElementInterface $orderElement, $type, $format = 'json')
    {
        return $this->serializer->deserialize(json_encode($orderElement->getRawProduct()), $type, $format);
    }