Copied!

EntryAddStruct

EntryAddStruct.php : 18
Extends ValueObject

The base class for all value objects and structs.

Methods

public__construct()

EntryAddStruct.php : 31

Construct object optionally with a set of properties.

public __construct(ProductInterface $product[, int $quantity = 1 ])

Parameters

Name Type Default value Description
$product ProductInterface - -
$quantity int 1 -

publicgetContext()

EntryAddStruct.php : 70
public getContext() : MapInterface<string, mixed>|null

Return values

MapInterface<string, mixed>|null

publicgetProduct()

EntryAddStruct.php : 44
public getProduct() : ProductInterface

Return values

ProductInterface

publicgetQuantity()

EntryAddStruct.php : 57
public getQuantity() : int

Return values

int

publicsetContext()

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

Parameters

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

publicsetProduct()

EntryAddStruct.php : 52
public setProduct(ProductInterface $product) : void

Parameters

Name Type Default value Description
$product ProductInterface - -

publicsetQuantity()

EntryAddStruct.php : 62
public setQuantity(int $quantity) : void

Parameters

Name Type Default value Description
$quantity int - -

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>