ProductPriceSerializer

Class ProductPriceSerializer

package

Default

Methods

ProductPriceSerializer constructor.

__construct(\ProductGroupPriceSerializer $groupPriceSerializer) 

Arguments

$groupPriceSerializer

\ProductGroupPriceSerializer

Deserialize the given json string to a product price entity.

deserialize(string|array $productPrice) : \ProductPrice

Arguments

$productPrice

string|array

Product price.

Response

\ProductPrice

Product price entity.

Serializes the given product price into an array.

serialize(\ProductPriceInterface $productPrice) : array

Arguments

$productPrice

\ProductPriceInterface

Product price to be serialized.

Response

array

Serialized product price.

Properties

groupPriceSerializer

groupPriceSerializer : \ProductGroupPriceSerializer