CustomerGroupCollectionSerializer
in package
implements
CustomerGroupCollectionSerializerInterface
Class CustomerGroupCollectionSerializer
Tags
Interfaces, Classes and Traits
- CustomerGroupCollectionSerializerInterface
- Interface CustomerGroupCollectionSerializerInterface
Table of Contents
- $customerGroupSerializer : CustomerGroupSerializerInterface
- $factory : CustomerGroupFactory
- __construct() : mixed
- deserialize() : CustomerGroupCollection
- Deserialize a JSON string.
- encode() : string
- JSON Encode Wrapper.
- serialize() : array<string|int, mixed>
- Serialize a value to a JSON string.
Properties
$customerGroupSerializer
protected
CustomerGroupSerializerInterface
$customerGroupSerializer
$factory
protected
CustomerGroupFactory
$factory
Methods
__construct()
public
__construct(CustomerGroupSerializerInterface $customerGroupSerializer, CustomerGroupFactory $factory) : mixed
Parameters
- $customerGroupSerializer : CustomerGroupSerializerInterface
- $factory : CustomerGroupFactory
Return values
mixed —deserialize()
Deserialize a JSON string.
public
deserialize(StringType $collection) : CustomerGroupCollection
Parameters
- $collection : StringType
-
Content to be deserialize.
Return values
CustomerGroupCollection —encode()
JSON Encode Wrapper.
public
encode(CustomerGroupCollection $collection) : string
Parameters
- $collection : CustomerGroupCollection
-
Content to be encoded.
Return values
string —Returns the encoded JSON string that represents the data.
serialize()
Serialize a value to a JSON string.
public
serialize(CustomerGroupCollection $collection) : array<string|int, mixed>
Parameters
- $collection : CustomerGroupCollection
-
Content to be serialized.