Skip to content

Commit

Permalink
Added before and after query callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDawson committed Jan 25, 2018
1 parent ca3bf92 commit de3bb0c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/AshleyDawson/SimplePagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,35 +200,37 @@ public function getItemTotalCallback()
}

/**
* @return \Closure
* {@inheritdoc}
*/
public function getBeforeQueryCallback()
{
return $this->beforeQueryCallback;
}

/**
* @param \Closure $beforeQueryCallback
* {@inheritdoc}
*/
public function setBeforeQueryCallback($beforeQueryCallback)
{
$this->beforeQueryCallback = $beforeQueryCallback;
return $this;
}

/**
* @return \Closure
* {@inheritdoc}
*/
public function getAfterQueryCallback()
{
return $this->afterQueryCallback;
}

/**
* @param \Closure $afterQueryCallback
* {@inheritdoc}
*/
public function setAfterQueryCallback($afterQueryCallback)
{
$this->afterQueryCallback = $afterQueryCallback;
return $this;
}

/**
Expand Down

0 comments on commit de3bb0c

Please sign in to comment.