Documentation

ComplexityCollection
in package
implements Countable, IteratorAggregate

FinalYes
Tags
psalm-immutable

Table of Contents

Interfaces

Countable
IteratorAggregate

Properties

$items  : array<string|int, mixed>

Methods

asArray()  : array<string|int, mixed>
count()  : int
cyclomaticComplexity()  : int
fromList()  : self
getIterator()  : ComplexityCollectionIterator
isEmpty()  : bool
isFunction()  : self
isMethod()  : self
mergeWith()  : self
sortByDescendingCyclomaticComplexity()  : self
__construct()  : mixed

Properties

$items read-only

private array<string|int, mixed> $items
Tags
psalm-var

list<Complexity>

Methods

asArray()

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

list<Complexity>

Return values
array<string|int, mixed>

cyclomaticComplexity()

public cyclomaticComplexity() : int
Tags
psalm-return

non-negative-int

Return values
int

mergeWith()

public mergeWith(self $other) : self
Parameters
$other : self
Return values
self

sortByDescendingCyclomaticComplexity()

public sortByDescendingCyclomaticComplexity() : self
Return values
self

__construct()

private __construct(array<string|int, mixed> $items) : mixed
Parameters
$items : array<string|int, mixed>
Tags
psalm-param

list<Complexity> $items


        
On this page

Search results