ProductModifier
ProductModifier
- Full name:
\Onslip360\API\ProductModifier
- Parent class:
\Onslip360\Onslip360Object
Properties
automatic
public bool $automatic
name
public string $name
type
public \Onslip360\API\ProductModifier\Type $type
created
public string|null $created
deleted
public string|null $deleted
id
public int|null $id
labelValues
public array|null $labelValues
labels
public array|null $labels
products
public array|null $products
required
public bool|null $required
tags
public array|null $tags
title
public \Onslip360\API\ProductModifier\Title|null $title
updated
public string|null $updated
updatedBy
public int|null $updatedBy
updatedFrom
public int|null $updatedFrom
values
public array|null $values
Methods
__construct
public __construct(bool $automatic, string $name, \Onslip360\API\ProductModifier\Type $type, string|null $created = null, string|null $deleted = null, int|null $id = null, int[]|null $labelValues = null, int[]|null $labels = null, int[]|null $products = null, bool|null $required = null, string[]|null $tags = null, \Onslip360\API\ProductModifier\Title|null $title = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null, string[]|null $values = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$automatic | bool | |
$name | string | |
$type | \Onslip360\API\ProductModifier\Type | |
$created | string|null | |
$deleted | string|null | |
$id | int|null | |
$labelValues | int[]|null | |
$labels | int[]|null | |
$products | int[]|null | |
$required | bool|null | |
$tags | string[]|null | |
$title | \Onslip360\API\ProductModifier\Title|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|null | |
$values | string[]|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05