Copied!

OrderCreateStruct

OrderCreateStruct.php : 19
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.

Methods

public__construct()

OrderCreateStruct.php : 43

Construct object optionally with a set of properties.

public __construct(OrderUserInterface $user, OrderCurrencyInterface $currency, OrderValueInterface $value, string $source, array<string|int, OrderItemInterface$items[, OrderCompanyInterface|null $company = null ][, MapInterface<string, mixed>|null $context = null ])

Parameters

Name Type Default value Description
$user OrderUserInterface - -
$currency OrderCurrencyInterface - -
$value OrderValueInterface - -
$source string - -
$items array<string|int, OrderItemInterface> - -
$company OrderCompanyInterface|null null -
$context MapInterface<string, mixed>|null null -

publicgetCompany()

OrderCreateStruct.php : 68
public getCompany() : OrderCompanyInterface|null

Return values

OrderCompanyInterface|null

publicgetContext()

OrderCreateStruct.php : 117
public getContext() : MapInterface<string, mixed>|null

Return values

MapInterface<string, mixed>|null

publicgetCurrency()

OrderCreateStruct.php : 73
public getCurrency() : OrderCurrencyInterface

Return values

OrderCurrencyInterface

publicgetItems()

OrderCreateStruct.php : 101
public getItems() : array<string|int, OrderItemInterface>

Return values

array<string|int, OrderItemInterface>

publicgetSource()

OrderCreateStruct.php : 83
public getSource() : string

Return values

string

publicgetStatus()

OrderCreateStruct.php : 88
public getStatus() : string

Return values

string

publicgetUser()

OrderCreateStruct.php : 63
public getUser() : OrderUserInterface

Return values

OrderUserInterface

publicgetValue()

OrderCreateStruct.php : 78
public getValue() : OrderValueInterface

Return values

OrderValueInterface

publicsetContext()

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

Parameters

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

publicsetStatus()

OrderCreateStruct.php : 93
public setStatus(string $status) : void

Parameters

Name Type Default value Description
$status 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>