Copied!

CartMetadataUpdateStruct

CartMetadataUpdateStruct.php : 16
Extends ValueObject

The base class for all value objects and structs.

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

Methods

public__construct()

CartMetadataUpdateStruct.php : 30

Construct object optionally with a set of properties.

public __construct([string|null $name = null ][, CurrencyInterface|null $currency = null ][, User|null $owner = null ][, MapInterface<string, mixed>|null $context = null ])

Parameters

Name Type Default value Description
$name string|null null -
$currency CurrencyInterface|null null -
$owner User|null null -
$context MapInterface<string, mixed>|null null -

publicgetContext()

CartMetadataUpdateStruct.php : 77
public getContext() : MapInterface<string, mixed>|null

Return values

MapInterface<string, mixed>|null

publicgetCurrency()

CartMetadataUpdateStruct.php : 54
public getCurrency() : CurrencyInterface|null

Return values

CurrencyInterface|null

publicgetName()

CartMetadataUpdateStruct.php : 44
public getName() : string|null

Return values

string|null

publicgetOwner()

CartMetadataUpdateStruct.php : 64
public getOwner() : User|null

Return values

User|null

publicsetContext()

CartMetadataUpdateStruct.php : 85
public setContext(MapInterface<string, mixed>|null $context) : void

Parameters

Name Type Default value Description
$context MapInterface<string, mixed>|null - -

publicsetCurrency()

CartMetadataUpdateStruct.php : 59
public setCurrency(CurrencyInterface|null $currency) : void

Parameters

Name Type Default value Description
$currency CurrencyInterface|null - -

publicsetName()

CartMetadataUpdateStruct.php : 49
public setName(string|null $name) : void

Parameters

Name Type Default value Description
$name string|null - -

publicsetOwner()

CartMetadataUpdateStruct.php : 69
public setOwner(User|null $owner) : void

Parameters

Name Type Default value Description
$owner User|null - -

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

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

Override to add dynamic properties.

Parameters

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

Additional dynamic properties exposed on the object

Return values

array<int, string>

Tags
Serializerignore

()