Skip to main content

ItemModifier


ItemModifier

Properties

modifier

public int $modifier

name

public string $name

values

public array $values

labels

public array|null $labels

type

public \Onslip360\API\ProductModifier\Type|null $type

Methods

__construct

public __construct(int $modifier, string $name, string[] $values, int[]|null $labels = null, \Onslip360\API\ProductModifier\Type|null $type = null): mixed

Parameters:

ParameterTypeDescription
$modifierint
$namestring
$valuesstring[]
$labelsint[]|null
$type\Onslip360\API\ProductModifier\Type|null

Inherited methods

getExtended

public getExtended(string $name): string|null|\Onslip360\Nil

Parameters:

ParameterTypeDescription
$namestring

setExtended

public setExtended(string $name, string|null|\Onslip360\Nil $value): static

Parameters:

ParameterTypeDescription
$namestring
$valuestring|null|\Onslip360\Nil

fromJson

public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring|array|\JsonSerializable|\stdClass

fromJsonArray

public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring[]|array[]|\JsonSerializable[]|\stdClass[]

jsonSerialize

public jsonSerialize(): array|object


Automatically generated on 2024-11-05