Copied!

ProductVariantCreateStruct

ProductVariantCreateStruct.php : 11

Methods

public__construct()

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

Parameters

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

publicgetAttribute()

ProductVariantCreateStruct.php : 41
public getAttribute(string $identifier[, mixed|null $default = null ]) : mixed|null

Parameters

Name Type Default value Description
$identifier string - -
$default mixed|null null -

Return values

mixed|null

publicgetAttributes()

ProductVariantCreateStruct.php : 30
public getAttributes() : array<int|string, mixed>

Return values

array<int|string, mixed>

publicgetCode()

ProductVariantCreateStruct.php : 62
public getCode() : string|null

Return values

string|null

publicsetAttribute()

ProductVariantCreateStruct.php : 49
public setAttribute(string $identifier, mixed $value) : void

Parameters

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

publicsetAttributes()

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

Parameters

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

publicsetCode()

ProductVariantCreateStruct.php : 67
public setCode(string|null $code) : void

Parameters

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