ProductOptions
in package
implements
IteratorAggregate
Class ProductOptions
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- $productOptions : array<string|int, ProductOption>
- create() : ProductOptions
- getIterator() : Traversable|array<string|int, ProductOption>
- toArray() : array<string|int, mixed>
- __construct() : mixed
- ProductOptions constructor.
Properties
$productOptions
private
array<string|int, ProductOption>
$productOptions
Methods
create()
public
static create(ProductOption ...$productOptions) : ProductOptions
Parameters
- $productOptions : ProductOption
Return values
ProductOptions —getIterator()
public
getIterator() : Traversable|array<string|int, ProductOption>
Return values
Traversable|array<string|int, ProductOption> —toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —__construct()
ProductOptions constructor.
private
__construct(array<string|int, ProductOption> $variants) : mixed
Parameters
- $variants : array<string|int, ProductOption>