PHP Class KGzocha\Searcher\Chain\Collection\CellCollection

Author: Krzysztof Gzocha ([email protected])
Inheritance: extends KGzocha\Searcher\AbstractCollection, implements KGzocha\Searcher\Chain\Collection\CellCollectionInterface
Show file Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
addCell ( KGzocha\Searcher\Chain\CellInterface $item )
addNamedCell ( string $name, KGzocha\Searcher\Chain\CellInterface $cell )
getCells ( ) : KGzocha\Searcher\Chain\CellInterface[]
getIterator ( ) : ArrayIterator
getNamedCell ( string $name ) : KGzocha\Searcher\Chain\CellInterface | null

Protected Methods

Method Description
isItemValid ( $item )

Private Methods

Method Description
validateNumberOfCells ( )

Method Details

addCell() public method

public addCell ( KGzocha\Searcher\Chain\CellInterface $item )
$item KGzocha\Searcher\Chain\CellInterface

addNamedCell() public method

public addNamedCell ( string $name, KGzocha\Searcher\Chain\CellInterface $cell )
$name string
$cell KGzocha\Searcher\Chain\CellInterface

getCells() public method

public getCells ( ) : KGzocha\Searcher\Chain\CellInterface[]
return KGzocha\Searcher\Chain\CellInterface[]

getIterator() public method

getNamedCell() public method

public getNamedCell ( string $name ) : KGzocha\Searcher\Chain\CellInterface | null
$name string
return KGzocha\Searcher\Chain\CellInterface | null

isItemValid() protected method

protected isItemValid ( $item )