CustomerGroupCollectionSerializer

Implements \CustomerGroupCollectionSerializerInterface

Class CustomerGroupCollectionSerializer

category

System

package

CustomerGroup

subpackage

Serializers

Methods

__construct

__construct(\CustomerGroupSerializerInterface $customerGroupSerializer, \CustomerGroupFactory $factory) 

Arguments

$customerGroupSerializer

\CustomerGroupSerializerInterface

Deserialize customer group configurations.

_deserializeCustomerGroupConfigurations(array $configurations) : \CustomerGroupConfigurationsInterface

Arguments

$configurations

array

Customer group configurations to be serialzed.

Response

\CustomerGroupConfigurationsInterface

Deserialize customer group configurations.

Deserialize customer group settings.

_deserializeCustomerGroupSettings(array $settings) : \CustomerGroupSettingsInterface

Arguments

$settings

array

Customer group settings to be serialzed.

Response

\CustomerGroupSettingsInterface

Deserialize customer group settings.

Serializes customer group entities.

_serializeCustomerGroup(\CustomerGroupInterface $customerGroup) : array

Arguments

$customerGroup

\CustomerGroupInterface

Customer group entity to be serialized.

Response

array

Serialized customer group array.

Serializes customer group configuration value objects.

_serializeCustomerGroupConfigurations(\CustomerGroupConfigurationsInterface $configurations) : array

Arguments

$configurations

\CustomerGroupConfigurationsInterface

Customer group configuration object to be serialized.

Response

array

Serialized customer group configuration array.

Serializes customer group names array.

_serializeCustomerGroupNames(array $customerGroupNames) : array

Arguments

$customerGroupNames

array

Customer group names array to be serialized.

Response

array

Serialized customer group names array.

Serializes customer group settings value objects.

_serializeCustomerGroupSettings(\CustomerGroupSettingsInterface $settings) : array

Arguments

$settings

\CustomerGroupSettingsInterface

Customer group settings object to be serialized.

Response

array

Serialized customer group settings array.

Deserialize a JSON string.

deserialize(\StringType $collection) : \CustomerGroupCollection

Arguments

$collection

\StringType

Content to be deserialize.

Response

\CustomerGroupCollection

JSON Encode Wrapper.

encode(\CustomerGroupCollection $collection) : string

Arguments

$collection

\CustomerGroupCollection

Content to be encoded.

Response

string

Returns the encoded JSON string that represents the data.

Serialize a value to a JSON string.

serialize(\CustomerGroupCollection $collection) : array

Arguments

$collection

\CustomerGroupCollection

Content to be serialized.

Response

array

Properties

customerGroupSerializer

customerGroupSerializer : \CustomerGroupSerializerInterface

factory

factory : \CustomerGroupFactory
var

Type(s)

\CustomerGroupFactory