Copied!

EntryCollectionInterface

EntryCollectionInterface.php : 17
Extends ListInterface

Methods

publiccontains()

ListInterface.php : 39
public contains(TValue $value) : bool

Parameters

Name Type Default value Description
$value TValue - -

Return values

bool

publicfirst()

ListInterface.php : 25

Return first element of collection.

public first() : TValue

Return values

TValue

Tags
Throws
OutOfBoundsException

if collection is empty

publicgetEntryForProduct()

EntryCollectionInterface.php : 19
public getEntryForProduct(ProductInterface $product) : EntryInterface

Parameters

Name Type Default value Description
$product ProductInterface - -

Return values

EntryInterface

publicgetIterator()

CollectionInterface.php : 32
public getIterator() : Iterator

Return values

Iterator

publichasEntryForProduct()

EntryCollectionInterface.php : 21
public hasEntryForProduct(ProductInterface $product) : bool

Parameters

Name Type Default value Description
$product ProductInterface - -

Return values

bool

publicisEmpty()

CollectionInterface.php : 22
public isEmpty() : bool

Return values

bool

publiclast()

ListInterface.php : 34

Return last element of collection.

public last() : TValue

Return values

TValue

Tags
Throws
OutOfBoundsException

if collection is empty

publictoArray()

CollectionInterface.php : 27
public toArray() : array<string|int, TValue>

Return values

array<string|int, TValue>