Copied!

ProductUpdateStruct

ProductUpdateStruct.php : 18
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()

ProductUpdateStruct.php : 41

Construct object optionally with a set of properties.

public __construct(ProductInterface|ContentAwareProductInterface $product, ContentUpdateStruct $contentUpdateStruct)

Parameters

Name Type Default value Description
$product ProductInterface|ContentAwareProductInterface - -
$contentUpdateStruct ContentUpdateStruct - -

publicgetAttributes()

ProductUpdateStruct.php : 70
public getAttributes() : array<string, mixed>

Return values

array<string, mixed>

publicgetCode()

ProductUpdateStruct.php : 57
public getCode() : string|null

Return values

string|null

publicgetContentMetadataUpdateStruct()

ProductUpdateStruct.php : 101
public getContentMetadataUpdateStruct() : ContentMetadataUpdateStruct|null

Return values

ContentMetadataUpdateStruct|null

publicgetContentUpdateStruct()

ProductUpdateStruct.php : 91
public getContentUpdateStruct() : ContentUpdateStruct

Return values

ContentUpdateStruct

publicgetProduct()

ProductUpdateStruct.php : 52

Return values

ProductInterface|ContentAwareProductInterface

publicsetAttribute()

ProductUpdateStruct.php : 78
public setAttribute(string $name, mixed $value) : void

Parameters

Name Type Default value Description
$name string - -
$value mixed - -

publicsetAttributes()

ProductUpdateStruct.php : 86
public setAttributes(array<string, mixed> $attributes) : void

Parameters

Name Type Default value Description
$attributes array<string, mixed> - -

publicsetCode()

ProductUpdateStruct.php : 62
public setCode(string|null $code) : void

Parameters

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

publicsetContentMetadataUpdateStruct()

ProductUpdateStruct.php : 106
public setContentMetadataUpdateStruct(ContentMetadataUpdateStruct|null $contentMetadataUpdateStruct) : void

Parameters

Name Type Default value Description
$contentMetadataUpdateStruct ContentMetadataUpdateStruct|null - -

publicsetContentUpdateStruct()

ProductUpdateStruct.php : 96
public setContentUpdateStruct(ContentUpdateStruct $contentUpdateStruct) : void

Parameters

Name Type Default value Description
$contentUpdateStruct ContentUpdateStruct - -

publicsetField()

ProductUpdateStruct.php : 114
public setField(string $fieldDefIdentifier, mixed $value[, string|null $language = null ]) : void

Parameters

Name Type Default value Description
$fieldDefIdentifier string - -
$value mixed - -
$language 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>