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