src/AbstractDbEntityFetcher.php
protected function getDbEntitiesFromRowsPaginated(array $rows, $pagination)
    {
        if ($pagination) {
            $totalRowCount = $this->db->fetchValue('SELECT FOUND_ROWS()');
            return [$this->getDbEntitiesFromRows($rows), $totalRowCount];
        }

        return $this->getDbEntitiesFromRows($rows);
    }
protected function getDbEntitiesFromRowsPaginated(array $rows, $pagination)
    {
        if ($pagination) {
            $totalRowCount = $this->db->fetchValue('SELECT FOUND_ROWS()');
            return [$this->getDbEntitiesFromRows($rows), $totalRowCount];
        }

        return $this->getDbEntitiesFromRows($rows);
    }
protected function getDbEntitiesFromRowsPaginated ( array $ rows , $ pagination ) { if ( $ pagination ) { $ totalRowCount = $ this -> db -> fetchValue ( 'SELECT FOUND_ROWS()' ) ; return [ $ this -> getDbEntitiesFromRows ( $ rows ) , $ totalRowCount ] ; } return $ this -> getDbEntitiesFromRows ( $ rows ) ; }
Helper method to get pagination result as objects if pagination is requested.

@param array $rows
@param bool  $pagination
@return array
Helper method to get pagination result as objects if pagination is requested .