Documentation

CodeUnitCollection
in package
implements Countable, IteratorAggregate

FinalYes
Tags
template-implements

IteratorAggregate<int, CodeUnit>

psalm-immutable

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
psalm-var

list<CodeUnit>

Methods

asArray()

public asArray() : array<string|int, mixed>
Tags
psalm-return

list<CodeUnit>

Return values
array<string|int, mixed>

mergeWith()

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>
Tags
psalm-param

list<CodeUnit> $codeUnits


        
On this page

Search results