CustomerGroupSerializer

Implements \CustomerGroupSerializerInterface

Class CustomerGroupSerializer

category

System

package

CustomerGroup

subpackage

Serializers

Methods

CustomerGroupSerializer constructor.

__construct(\CustomerGroupSettingsSerializerInterface $settingsSerializer, \CustomerGroupConfigurationsSerializerInterface $configurationsSerializer, \CustomerGroupFactory $customerGroupFactory) 

Arguments

$customerGroupFactory

\CustomerGroupFactory

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.

Deserialize a JSON string.

deserialize(\StringType $customerGroup) : \CustomerGroupInterface

Arguments

$customerGroup

\StringType

Content to be deserialize.

Response

\CustomerGroupInterface

JSON Encode Wrapper.

encode(\CustomerGroupInterface $customerGroup) : string

Arguments

$customerGroup

\CustomerGroupInterface

Content to be encoded.

Response

string

Returns the encoded JSON string that represents the data.

Serialize a value to a JSON string.

serialize(\CustomerGroupInterface $customerGroup) : array

Arguments

$customerGroup

\CustomerGroupInterface

Content to be serialized.

Response

array

Properties

settingsSerializer

settingsSerializer : \CustomerGroupSettingsSerializerInterface

configurationsSerializer

configurationsSerializer : \CustomerGroupConfigurationsSerializerInterface

factory

factory : \CustomerGroupFactory
var

Type(s)

\CustomerGroupFactory