src/AbstractDbEntityFetcher.php
protected function getFetchPaginationResult(array $objects, $pagination)
    {
        if ($pagination) {
            $totalRowCount = $this->db->fetchValue('SELECT FOUND_ROWS()');

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

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

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