Copied!

CustomerGroupCreateStruct

CustomerGroupCreateStruct.php : 13
Extends ValueObject

The base class for all value objects and structs.

Supports readonly properties by marking them as protected. In this case they will only be writable using constructor, and need to be documented using property-read <$var> annotation in class doc in addition to inline property doc. Writable properties must be public and must be documented inline.

Properties

public $descriptions

CustomerGroupCreateStruct.php : 44

Human-readable description of the customer group.

public array<int, string> $descriptions = []

The structure of this field is:

[2 => '', 4 => ''];

public $names

CustomerGroupCreateStruct.php : 31

Human-readable name of the customer group.

public array<int, string> $names = []

The structure of this field is:

[2 => '', 4 => ''];

Methods

public__construct()

CustomerGroupCreateStruct.php : 51

Construct object optionally with a set of properties.

public __construct(string $identifier, array<int, string> $names, array<int, string> $descriptions[, numeric-string $globalPriceRate = '100.0' ])

Parameters

Name Type Default value Description
$identifier string - -
$names array<int, string> - -
$descriptions array<int, string> - -
$globalPriceRate numeric-string '100.0' -

publicaddDescription()

CustomerGroupCreateStruct.php : 87
public addDescription(int $languageId, string $description) : void

Parameters

Name Type Default value Description
$languageId int - -
$description string - -

publicaddName()

CustomerGroupCreateStruct.php : 74
public addName(int $languageId, string $name) : void

Parameters

Name Type Default value Description
$languageId int - -
$name string - -

publicgetDescription()

CustomerGroupCreateStruct.php : 92
public getDescription(int $languageId) : string

Parameters

Name Type Default value Description
$languageId int - -

Return values

string

publicgetDescriptions()

CustomerGroupCreateStruct.php : 100
public getDescriptions() : array<int, string>

Return values

array<int, string>

publicgetGlobalPriceRate()

CustomerGroupCreateStruct.php : 108
public getGlobalPriceRate() : numeric-string

Return values

numeric-string

publicgetIdentifier()

CustomerGroupCreateStruct.php : 64
public getIdentifier() : string

Return values

string

publicgetName()

CustomerGroupCreateStruct.php : 69
public getName(int $languageId) : string

Parameters

Name Type Default value Description
$languageId int - -

Return values

string

publicgetNames()

CustomerGroupCreateStruct.php : 82
public getNames() : array<int, string>

Return values

array<int, string>

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>