Fire/Sql/Collection.php
private function _countObjectsInCollection()
    {
        $select = Statement::get(
            'GET_COLLECTION_OBJECT_COUNT',
            [
                '@collection' => $this->_name
            ]
        );
        $count = $this->_connector->query($select)->fetch();
        if ($count) {
            return (int) $count[0];
        } else {
            return 0;
        }
    }
private function _countObjectsInCollection()
    {
        $select = Statement::get(
            'GET_COLLECTION_OBJECT_COUNT',
            [
                '@collection' => $this->_name
            ]
        );
        $count = $this->_connector->query($select)->fetch();
        if ($count) {
            return (int) $count[0];
        } else {
            return 0;
        }
    }
private function _countObjectsInCollection ( ) { $ select = Statement :: get ( 'GET_COLLECTION_OBJECT_COUNT' , [ '@collection' => $ this -> _name ] ) ; $ count = $ this -> _connector -> query ( $ select ) -> fetch ( ) ; if ( $ count ) { return ( int ) $ count [ 0 ] ; } else { return 0 ; } }
This method is used will return the count of objects contained with
the collection.
@return int
This method is used will return the count of objects contained with the collection .