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¶
__construct()
¶
ShippingMethodUpdateStruct.php
:
44
Construct object optionally with a set of properties.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string|null | null | - |
| $names | array<string, string> | [] | - |
| $descriptions | array<string, string> | [] | - |
| $options | array<string, mixed>|null | [] | - |
| $regions | array<int, RegionInterface> | [] | - |
| $enabled | bool|null | null | - |
| $vatCategoryIdentifier | string|null | null | - |
getDescriptions()
¶
ShippingMethodUpdateStruct.php
:
100
|
|
|
Return values
array<string, string>
getEnabled()
¶
ShippingMethodUpdateStruct.php
:
136
|
|
|
Return values
bool|null
getIdentifier()
¶
ShippingMethodUpdateStruct.php
:
64
|
|
|
Return values
string|null
getNames()
¶
ShippingMethodUpdateStruct.php
:
77
|
|
|
Return values
array<string, string>
getOptions()
¶
ShippingMethodUpdateStruct.php
:
123
|
|
|
Return values
array<string, mixed>|null
getRegions()
¶
ShippingMethodUpdateStruct.php
:
149
|
|
|
Return values
array<int, RegionInterface>|null
getVatCategoryIdentifier()
¶
ShippingMethodUpdateStruct.php
:
162
|
|
|
Return values
string|null
setDescription()
¶
ShippingMethodUpdateStruct.php
:
113
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $description | string | - | - |
setDescriptions()
¶
ShippingMethodUpdateStruct.php
:
108
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $descriptions | array<string, string> | - | - |
setEnabled()
¶
ShippingMethodUpdateStruct.php
:
141
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $enabled | bool|null | - | - |
setIdentifier()
¶
ShippingMethodUpdateStruct.php
:
69
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string|null | - | - |
setName()
¶
ShippingMethodUpdateStruct.php
:
90
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $languageCode | string | - | - |
| $name | string | - | - |
setNames()
¶
ShippingMethodUpdateStruct.php
:
85
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $names | array<string, string> | - | - |
setOptions()
¶
ShippingMethodUpdateStruct.php
:
131
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $options | array<string, mixed>|null | - | - |
setRegions()
¶
ShippingMethodUpdateStruct.php
:
157
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $regions | array<int, RegionInterface> | - | - |
setVatCategoryIdentifier()
¶
ShippingMethodUpdateStruct.php
:
167
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $vatCategoryIdentifier | string|null | - | - |
getProperties()
¶
ValueObject.php
:
53
Returns list of available properties' names.
|
|
|
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>
Attributes
- #[Ignore]