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
Methods¶
__construct() ¶
AbstractPriceCreateStruct.php
:
35
Construct object optionally with a set of properties.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$product | ProductInterface | - | - |
$currency | CurrencyInterface | - | - |
$money | Money | - | - |
$customPriceMoney | Money|null | null | - |
$customPriceRule | numeric-string|null | null | - |
execute() ¶
AbstractPriceCreateStruct.php
:
87
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$productPriceService | ProductPriceServiceInterface | - | - |
getAmount() ¶
AbstractPriceCreateStruct.php
:
64
|
|
Return values
numeric-string
getCurrency() ¶
AbstractPriceCreateStruct.php
:
69
|
|
Return values
getCustomPrice() ¶
AbstractPriceCreateStruct.php
:
74
|
|
Return values
Money|null
getCustomPriceRule() ¶
AbstractPriceCreateStruct.php
:
82
|
|
Return values
numeric-string|null
getDiscriminator() ¶
ProductPriceCreateStruct.php
:
13
Return a value that all identifies ProductPrice specific type.
|
|
Return values
string
getMoney() ¶
AbstractPriceCreateStruct.php
:
56
|
|
Return values
Money
getProduct() ¶
AbstractPriceCreateStruct.php
:
51
|
|
Return values
getProperties() ¶
ValueObject.php
:
50
Function where list of properties are returned.
|
|
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>