abstract class BaseCollection (View source)

Class BaseCollection

Properties

protected array $elements Elements

Methods

array
getElements()

Get elements

add($element)

Add item to collection

array
toData()

Get all elements array data

bool
isEmpty()

Collection is empty

bool
validator($elements)

Validate collection item

Details

array getElements()

Get elements

Return Value

array

add($element)

Add item to collection

Parameters

$element

array toData()

Get all elements array data

Return Value

array

bool isEmpty()

Collection is empty

Return Value

bool

abstract bool validator($elements)

Validate collection item

Parameters

$elements

Return Value

bool