Documentation

EanCollection extends Collection
in package

Tags
inherits

Collection<Ean>

Table of Contents

$elements  : array<string|int, T>
__construct()  : mixed
count()  : int
fromStrings()  : self
getIterator()  : Traversable<string|int, T>
toArray()  : array<string|int, T>
isValidElement()  : bool
sortElements()  : array<string|int, T>

Properties

$elements

private array<string|int, T> $elements

Methods

__construct()

public __construct([array<string|int, T$elements = [] ]) : mixed
Parameters
$elements : array<string|int, T> = []
Return values
mixed

count()

public count() : int
Return values
int

fromStrings()

public static fromStrings(array<string|int, mixed> $strings) : self
Parameters
$strings : array<string|int, mixed>
Return values
self

getIterator()

public getIterator() : Traversable<string|int, T>
Return values
Traversable<string|int, T>

toArray()

public toArray() : array<string|int, T>
Return values
array<string|int, T>

isValidElement()

protected isValidElement(mixed $element) : bool
Parameters
$element : mixed
Return values
bool

sortElements()

protected sortElements(array<string|int, T$elements) : array<string|int, T>
Parameters
$elements : array<string|int, T>
Return values
array<string|int, T>

Search results