CustomerGroupSerializer
in package
implements
CustomerGroupSerializerInterface
Class CustomerGroupSerializer
Tags
Interfaces, Classes and Traits
- CustomerGroupSerializerInterface
- Interface CustomerGroupSerializerInterface
Table of Contents
- $configurationsSerializer : CustomerGroupConfigurationsSerializerInterface
- $factory : CustomerGroupFactory
- $settingsSerializer : CustomerGroupSettingsSerializerInterface
- __construct() : mixed
- CustomerGroupSerializer constructor.
- deserialize() : CustomerGroupInterface
- Deserialize a JSON string.
- encode() : string
- JSON Encode Wrapper.
- serialize() : array<string|int, mixed>
- Serialize a value to a JSON string.
- _serializeCustomerGroupNames() : array<string|int, mixed>
- Serializes customer group names array.
Properties
$configurationsSerializer
protected
CustomerGroupConfigurationsSerializerInterface
$configurationsSerializer
$factory
protected
CustomerGroupFactory
$factory
$settingsSerializer
protected
CustomerGroupSettingsSerializerInterface
$settingsSerializer
Methods
__construct()
CustomerGroupSerializer constructor.
public
__construct(CustomerGroupSettingsSerializerInterface $settingsSerializer, CustomerGroupConfigurationsSerializerInterface $configurationsSerializer, CustomerGroupFactory $customerGroupFactory) : mixed
Parameters
- $settingsSerializer : CustomerGroupSettingsSerializerInterface
- $configurationsSerializer : CustomerGroupConfigurationsSerializerInterface
- $customerGroupFactory : CustomerGroupFactory
Return values
mixed —deserialize()
Deserialize a JSON string.
public
deserialize(StringType $customerGroup) : CustomerGroupInterface
Parameters
- $customerGroup : StringType
-
Content to be deserialize.
Return values
CustomerGroupInterface —encode()
JSON Encode Wrapper.
public
encode(CustomerGroupInterface $customerGroup) : string
Parameters
- $customerGroup : CustomerGroupInterface
-
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(CustomerGroupInterface $customerGroup) : array<string|int, mixed>
Parameters
- $customerGroup : CustomerGroupInterface
-
Content to be serialized.
Return values
array<string|int, mixed> —_serializeCustomerGroupNames()
Serializes customer group names array.
protected
_serializeCustomerGroupNames(array<string|int, mixed> $customerGroupNames) : array<string|int, mixed>
Parameters
- $customerGroupNames : array<string|int, mixed>
-
Customer group names array to be serialized.
Return values
array<string|int, mixed> —Serialized customer group names array.