WishlistItems
in package
implements
IteratorAggregate
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- $values : array<string|int, mixed>
- create() : self
- Create a new instance of ShoppingCartItems
- getIterator() : ArrayIterator|array<string|int, WishlistItem>
- toArray() : array<string|int, mixed>
- returns the Shopping Cart Items
- __construct() : mixed
- Constructor
Properties
$values
private
array<string|int, mixed>
$values
Methods
create()
Create a new instance of ShoppingCartItems
public
static create(WishlistItem ...$items) : self
Parameters
- $items : WishlistItem
Return values
self —getIterator()
public
getIterator() : ArrayIterator|array<string|int, WishlistItem>
Return values
ArrayIterator|array<string|int, WishlistItem> —toArray()
returns the Shopping Cart Items
public
toArray([string $format = "Y-m-d" ]) : array<string|int, mixed>
Parameters
- $format : string = "Y-m-d"
Return values
array<string|int, mixed> —__construct()
Constructor
private
__construct(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>