lib/PostQuery.php
public function pagination( $prefs = array() ) {
		if ( !$this->pagination && is_a($this->queryIterator, 'Timber\QueryIterator') ) {
			$this->pagination = $this->queryIterator->get_pagination($prefs, $this->get_query());
		}
		return $this->pagination;
	}
public function pagination( $prefs = array() ) {
		if ( !$this->pagination && is_a($this->queryIterator, 'Timber\QueryIterator') ) {
			$this->pagination = $this->queryIterator->get_pagination($prefs, $this->get_query());
		}
		return $this->pagination;
	}
public function pagination ( $ prefs = array ( ) ) { if ( ! $ this -> pagination && is_a ( $ this -> queryIterator , 'Timber\QueryIterator' ) ) { $ this -> pagination = $ this -> queryIterator -> get_pagination ( $ prefs , $ this -> get_query ( ) ) ; } return $ this -> pagination ; }
Set pagination for the collection. Optionally could be used to get pagination with custom preferences.

@param 	array $prefs
@return 	Timber\Pagination object
Set pagination for the collection . Optionally could be used to get pagination with custom preferences .