CodeUnitCollection
in package
implements
Countable, IteratorAggregate
FinalYes
Table of Contents
Interfaces
- Countable
- IteratorAggregate
Properties
- $codeUnits : mixed
Methods
- asArray() : array<string|int, mixed>
- count() : int
- fromArray() : self
- fromList() : self
- getIterator() : CodeUnitCollectionIterator
- isEmpty() : bool
- mergeWith() : self
- __construct() : mixed
- add() : void
Properties
$codeUnits
private
mixed
$codeUnits
= []
Tags
Methods
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>count()
public
count() : int
Return values
intfromArray()
public
static fromArray(array<string|int, mixed> $items) : self
Parameters
- $items : array<string|int, mixed>
Tags
Return values
selffromList()
public
static fromList(CodeUnit ...$items) : self
Parameters
- $items : CodeUnit
Return values
selfgetIterator()
public
getIterator() : CodeUnitCollectionIterator
Return values
CodeUnitCollectionIteratorisEmpty()
public
isEmpty() : bool
Return values
boolmergeWith()
public
mergeWith(self $other) : self
Parameters
- $other : self
Return values
self__construct()
private
__construct() : mixed
add()
private
add(CodeUnit $item) : void
Parameters
- $item : CodeUnit