CodeUnitCollection
implements
Countable, IteratorAggregate
Interfaces, Classes, Traits and Enums
- Countable
- IteratorAggregate
Table of Contents
-
$codeUnits
: mixed
-
asArray()
: array<string|int, mixed>
-
count()
: int
-
fromArray()
: self
-
fromList()
: self
-
getIterator()
: CodeUnitCollectionIterator
-
isEmpty()
: bool
-
mergeWith()
: self
-
__construct()
: mixed
-
add()
: void
$codeUnits
private
mixed
$codeUnits
= []
-
psalm-var
-
asArray()
public
asArray() : array<string|int, mixed>
-
psalm-return
-
Return values
array<string|int, mixed>
—
count()
public
count() : int
Return values
int
—
fromArray()
public
static fromArray(array<string|int, mixed> $items) : self
Parameters
-
$items
: array<string|int, mixed>
-
-
psalm-param
-
Return values
self
—
fromList()
public
static fromList(CodeUnit ...$items) : self
Parameters
-
$items
: CodeUnit
-
Return values
self
—
getIterator()
public
getIterator() : CodeUnitCollectionIterator
Return values
CodeUnitCollectionIterator
—
isEmpty()
public
isEmpty() : bool
Return values
bool
—
mergeWith()
public
mergeWith(self $other) : self
Parameters
-
$other
: self
-
Return values
self
—
__construct()
private
__construct() : mixed
Return values
mixed
—
add()
private
add(CodeUnit $item) : void
Parameters
-
$item
: CodeUnit
-
Return values
void
—