Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #115 from spiral/develop
Browse files Browse the repository at this point in the history
- getPaginator alias
  • Loading branch information
wolfy-j committed Mar 14, 2016
2 parents 697d04e + d67ac42 commit 680e319
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/Spiral/Pagination/Traits/PaginatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ public function paginator()
return $this->paginator;
}

/**
* Get paginator for the current selection. Paginate method should be already called.
*
* @see isPaginated()
* @see paginate()
* @return PaginatorInterface|Paginator|null
*/
public function getPaginator()
{
return $this->paginator;
}

/**
* Indication that object was paginated.
*
Expand Down

0 comments on commit 680e319

Please sign in to comment.