PHP Class KGzocha\Searcher\Result\ResultCollection

This class regardless the constructor will always be iteratable, so in worse case scenario there will be no results inside, but your controllers will still work. It's not recommended to use it on development environment due to eventual problems with debugging.
Author: Krzysztof Gzocha ([email protected])
Inheritance: extends KGzocha\Searcher\AbstractCollection, implements KGzocha\Searcher\Result\ResultCollectionInterface
Show file Open project: krzysztof-gzocha/searcher Class Usage Examples

Public Methods

Method Description
addNamedItem ( $name, $item )
getResults ( )
jsonSerialize ( )

Protected Methods

Method Description
isItemValid ( $item )

Method Details

addNamedItem() public method

public addNamedItem ( $name, $item )

getResults() public method

public getResults ( )

isItemValid() protected method

protected isItemValid ( $item )

jsonSerialize() public method

public jsonSerialize ( )