SpecialOfferSerializer

Class SpecialOfferSerializer

package

Default

Methods

Deserialize the given json string to a special offer entity.

deserialize(mixed $specialOffer) : \SpecialOffer
Throws
\Exception

Arguments

$specialOffer

mixed

Special offer.

Response

\SpecialOffer

Special offer entity.

Encodes the given special offer into a json string.

encode(\SpecialOfferInterface $specialOffer) : string

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be serialized.

Response

string

Serialized special offer.

Serializes the given special offer into an array.

serialize(\SpecialOfferInterface $specialOffer) : array

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be serialized.

Response

array

Serialized special offer.