Copied!

CheckoutUpdateStruct

CheckoutUpdateStruct.php : 13
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()

CheckoutUpdateStruct.php : 23

Construct object optionally with a set of properties.

public __construct([string|null $transition = null ][, mixed|null $data = null ])

Parameters

Name Type Default value Description
$transition string|null null -
$data mixed|null null -

publicgetData()

CheckoutUpdateStruct.php : 43
public getData() : mixed|null

Return values

mixed|null

publicgetTransition()

CheckoutUpdateStruct.php : 30
public getTransition() : string|null

Return values

string|null

publicsetData()

CheckoutUpdateStruct.php : 51
public setData(mixed|null $data) : void

Parameters

Name Type Default value Description
$data mixed|null - -

publicsetTransition()

CheckoutUpdateStruct.php : 35
public setTransition([string|null $transition = null ]) : void

Parameters

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

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>