/** * @param int $currentPage * @return $this */ public function setCurrentPage($currentPage) { if ($currentPage > 0) { $this->currentPage = $currentPage; $this->qs = $this->qs->byPage($currentPage, $this->getItemsPerPage()); } return $this; }
/** * @param Metadata $metadata * @param QueryBuilder $qb * @param Connection $db * @param array $fields */ public function __construct(Metadata $metadata, QueryBuilder $qb = null, Connection $db = null, array $fields = null) { parent::__construct($metadata, $qb, $db); $this->selectFields = $fields; }