CustomerGroupSettingsSerializer
in package
implements
CustomerGroupSettingsSerializerInterface
Class CustomerGroupSettingsSerializer
Tags
Interfaces, Classes and Traits
- CustomerGroupSettingsSerializerInterface
- Interface CustomerGroupSettingsSerializerInterface
Table of Contents
- $factory : CustomerGroupFactory
- __construct() : mixed
- CustomerGroupSettingsSerializer constructor.
- deserialize() : CustomerGroupSettings
- Deserialize a JSON string.
- encode() : string
- JSON Encode Wrapper.
- serialize() : array<string|int, mixed>
- Serialize a value to a JSON string.
Properties
$factory
protected
CustomerGroupFactory
$factory
Methods
__construct()
CustomerGroupSettingsSerializer constructor.
public
__construct(CustomerGroupFactory $customerGroupFactory) : mixed
Parameters
- $customerGroupFactory : CustomerGroupFactory
Return values
mixed —deserialize()
Deserialize a JSON string.
public
deserialize(StringType $settings) : CustomerGroupSettings
Parameters
- $settings : StringType
-
Content to be deserialize.
Return values
CustomerGroupSettings —encode()
JSON Encode Wrapper.
public
encode(CustomerGroupSettingsInterface $settings) : string
Parameters
- $settings : CustomerGroupSettingsInterface
-
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(CustomerGroupSettingsInterface $settings) : array<string|int, mixed>
Parameters
- $settings : CustomerGroupSettingsInterface
-
Content to be serialized.