PHP Class Askedio\ItemPaginator\ItemPaginator

Inheritance: extends Illuminate\Pagination\Paginator, implements Illuminate\Contracts\Support\Arrayable, implements ArrayAcces\ArrayAccess, implements Countabl\Countable, implements IteratorAggregat\IteratorAggregate, implements JsonSerializabl\JsonSerializable, implements Illuminate\Contracts\Support\Jsonable, implements Illuminate\Contracts\Pagination\Paginator
Show file Open project: askedio/laravel-item-paginate Class Usage Examples

Public Methods

Method Description
firstItem ( ) : integer Get the number of the first item in the slice.
lastItem ( ) : integer Get the number of the last item in the slice.
nextPageUrl ( ) : string | null Get the URL for the next page.
toArray ( ) : array Get the instance as an array.

Protected Methods

Method Description
getField ( )

Method Details

firstItem() public method

Get the number of the first item in the slice.
public firstItem ( ) : integer
return integer

getField() protected method

protected getField ( )

lastItem() public method

Get the number of the last item in the slice.
public lastItem ( ) : integer
return integer

nextPageUrl() public method

Get the URL for the next page.
public nextPageUrl ( ) : string | null
return string | null

toArray() public method

Get the instance as an array.
public toArray ( ) : array
return array