Copied!

ProductVariantUpdateStruct

ProductVariantUpdateStruct.php : 11

Methods

public__construct()

ProductVariantUpdateStruct.php : 21
public __construct([array<string, object|scalar|array<string|int, mixed>|null> $attributes = [] ][, string|null $code = null ])

Parameters

Name Type Default value Description
$attributes array<string, object|scalar|array<string|int, mixed>|null> [] -
$code string|null null -

publicgetAttribute()

ProductVariantUpdateStruct.php : 40
public getAttribute(string $identifier[, object|scalar|array<string|int, mixed>|null $default = null ]) : object|scalar|array<string|int, mixed>|null

Parameters

Name Type Default value Description
$identifier string - -
$default object|scalar|array<string|int, mixed>|null null -

Return values

object|scalar|array<string|int, mixed>|null

publicgetAttributes()

ProductVariantUpdateStruct.php : 30
public getAttributes() : array<string, object|scalar|array<string|int, mixed>|null>

Return values

array<string, object|scalar|array<string|int, mixed>|null>

publicgetCode()

ProductVariantUpdateStruct.php : 71
public getCode() : string|null

Return values

string|null

publichasAttribute()

ProductVariantUpdateStruct.php : 45
public hasAttribute(string $identifier) : bool

Parameters

Name Type Default value Description
$identifier string - -

Return values

bool

publichasAttributes()

ProductVariantUpdateStruct.php : 50
public hasAttributes() : bool

Return values

bool

publicsetAttribute()

ProductVariantUpdateStruct.php : 58
public setAttribute(string $identifier, object|scalar|array<string|int, mixed>|null $value) : void

Parameters

Name Type Default value Description
$identifier string - -
$value object|scalar|array<string|int, mixed>|null - -

publicsetAttributes()

ProductVariantUpdateStruct.php : 66
public setAttributes(array<string, object|scalar|array<string|int, mixed>|null> $attributes) : void

Parameters

Name Type Default value Description
$attributes array<string, object|scalar|array<string|int, mixed>|null> - -

publicsetCode()

ProductVariantUpdateStruct.php : 76
public setCode(string|null $code) : void

Parameters

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