ComplexityCollection
in package
implements
Countable, IteratorAggregate
FinalYes
Tags
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
Methods
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>count()
public
count() : int
Tags
Return values
intcyclomaticComplexity()
public
cyclomaticComplexity() : int
Tags
Return values
intfromList()
public
static fromList(Complexity ...$items) : self
Parameters
- $items : Complexity
Return values
selfgetIterator()
public
getIterator() : ComplexityCollectionIterator
Return values
ComplexityCollectionIteratorisEmpty()
public
isEmpty() : bool
Return values
boolisFunction()
public
isFunction() : self
Return values
selfisMethod()
public
isMethod() : self
Return values
selfmergeWith()
public
mergeWith(self $other) : self
Parameters
- $other : self
Return values
selfsortByDescendingCyclomaticComplexity()
public
sortByDescendingCyclomaticComplexity() : self
Return values
self__construct()
private
__construct(array<string|int, mixed> $items) : mixed
Parameters
- $items : array<string|int, mixed>