ItemListTrait
trait ItemListTrait
Methods
int
count()
No description
static ItemListTrait
ItemInterface|null
first()
Get first element
array
getItems()
No description
getIterator()
No description
array
jsonSerialize()
No description
ItemInterface|null
last()
Return the last element
bool
offsetExists($offset)
No description
ItemInterface|null
offsetGet($offset)
No description
void
offsetSet($offset, $value)
No description
void
offsetUnset($offset)
No description
int
void
setItems(array $items)
No description
array
toArray()
Transforms the option into an array.
int
Details
at line 147
int
count()
No description
at line 37
static ItemListTrait
create(ItemInterface ...$items)
No description
at line 96
ItemInterface|null
first()
Get first element
at line 57
array
getItems()
No description
at line 107
ArrayIterator
getIterator()
No description
at line 154
array
jsonSerialize()
No description
at line 88
ItemInterface|null
last()
Return the last element
at line 116
bool
offsetExists($offset)
No description
at line 125
ItemInterface|null
offsetGet($offset)
No description
at line 133
void
offsetSet($offset, $value)
No description
at line 140
void
offsetUnset($offset)
No description
at line 44
int
push(ItemInterface $item)
No description
at line 66
void
setItems(array $items)
No description
at line 74
array
toArray()
Transforms the option into an array.
at line 49
int
unshift(ItemInterface $item)
No description