PHP Class KGzocha\Searcher\Criteria\Adapter\ImmutablePaginationAdapter

Every other behaviour will be untouched.
Author: Krzysztof Gzocha ([email protected])
Inheritance: implements KGzocha\Searcher\Criteria\PaginationCriteriaInterface
Datei anzeigen Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
__construct ( KGzocha\Searcher\Criteria\PaginationCriteriaInterface $pagination )
getItemsPerPage ( )
getPage ( )
setItemsPerPage ( $itemsPerPage ) This method will not allow to change items per page.
setPage ( $page )
shouldBeApplied ( )

Method Details

__construct() public method

public __construct ( KGzocha\Searcher\Criteria\PaginationCriteriaInterface $pagination )
$pagination KGzocha\Searcher\Criteria\PaginationCriteriaInterface

getItemsPerPage() public method

public getItemsPerPage ( )

getPage() public method

public getPage ( )

setItemsPerPage() public method

On each call it will set the same value. {@inheritdoc}
public setItemsPerPage ( $itemsPerPage )

setPage() public method

public setPage ( $page )

shouldBeApplied() public method

public shouldBeApplied ( )