phpDocumentor

SpecialOfferSerializer
in package

Class SpecialOfferSerializer

Table of Contents

deserialize()  : SpecialOffer
Deserialize the given json string to a special offer entity.
encode()  : string
Encodes the given special offer into a json string.
serialize()  : array<string|int, mixed>
Serializes the given special offer into an array.

Methods

deserialize()

Deserialize the given json string to a special offer entity.

public deserialize(mixed $specialOffer) : SpecialOffer
Parameters
$specialOffer : mixed

Special offer.

Tags
throws
InvalidArgumentException

If the argument is not an array nor a valid JSON string or "null" JSON string

throws
Exception
Return values
SpecialOffer

Special offer entity.

Search results