CodeUnitCollection
in package
implements
Countable, IteratorAggregate
FinalYes
Tags
Table of Contents
Interfaces
- Countable
- IteratorAggregate
Properties
- $codeUnits : array<string|int, mixed>
Methods
- asArray() : array<string|int, mixed>
- count() : int
- fromList() : self
- getIterator() : CodeUnitCollectionIterator
- isEmpty() : bool
- mergeWith() : self
- __construct() : mixed
Properties
$codeUnits read-only
private
array<string|int, mixed>
$codeUnits
Tags
Methods
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>count()
public
count() : int
Return values
intfromList()
public
static fromList(CodeUnit ...$codeUnits) : self
Parameters
- $codeUnits : 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(array<string|int, mixed> $codeUnits) : mixed
Parameters
- $codeUnits : array<string|int, mixed>