PHP Class KGzocha\Searcher\Criteria\PaginationCriteria

Author: Krzysztof Gzocha ([email protected])
Inheritance: implements KGzocha\Searcher\Criteria\PaginationCriteriaInterface
Show file Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
__construct ( integer $page = null, integer $itemsPerPage = null )
getItemsPerPage ( ) : integer
getPage ( ) : integer
setItemsPerPage ( integer $itemsPerPage )
setPage ( integer $page )
shouldBeApplied ( )

Private Methods

Method Description
convert ( integer $number ) : integer

Method Details

__construct() public method

public __construct ( integer $page = null, integer $itemsPerPage = null )
$page integer
$itemsPerPage integer

getItemsPerPage() public method

public getItemsPerPage ( ) : integer
return integer

getPage() public method

public getPage ( ) : integer
return integer

setItemsPerPage() public method

public setItemsPerPage ( integer $itemsPerPage )
$itemsPerPage integer

setPage() public method

public setPage ( integer $page )
$page integer

shouldBeApplied() public method

public shouldBeApplied ( )