odata/library/ODataProducer/UriProcessor/UriProcessor.php
/**
     * Pops segment information from the 'Segment Stack'
     * Note: Calls to this method should be balanced with previous calls 
     * to _pushSegment.
     * 
     * @param boolean $needPop Is a pop required. Only true if last push 
     *                         was successful.
     * 
     * @return void
     * 
     * @throws InvalidOperationException If found un-balanced call 
     *                                   with _pushSegment
     */
Pops segment information from the 'Segment Stack'
Note: Calls to this method should be balanced with previous calls
to _pushSegment.

@param boolean $needPop Is a pop required. Only true if last push
was successful.

@return void

@throws InvalidOperationException If found un-balanced call
with _pushSegment
Pops segment information from the ' Segment Stack ' Note : Calls to this method should be balanced with previous calls to _pushSegment . @param boolean $needPop Is a pop required . Only true if last push was successful . @return void @throws InvalidOperationException If found un - balanced call with _pushSegment
private function _popSegment($needPop)
    {
        if ($needPop) {
            if (!empty($this->_segmentNames)) {
                array_pop($this->_segmentNames);
                array_pop($this->_segmentResourceSetWrappers);
            } else {
                throw new InvalidOperationException(
                    'Found non-balanced call to _pushSegment and popSegment'
                );
            }
        }
    }
private function _popSegment ( $ needPop ) { if ( $ needPop ) { if ( ! empty ( $ this -> _segmentNames ) ) { array_pop ( $ this -> _segmentNames ) ; array_pop ( $ this -> _segmentResourceSetWrappers ) ; } else { throw new InvalidOperationException ( 'Found non-balanced call to _pushSegment and popSegment' ) ; } } }
Pops segment information from the 'Segment Stack'
 Note: Calls to this method should be balanced with previous calls
 to _pushSegment.
Pops segment information from the ' Segment Stack ' Note : Calls to this method should be balanced with previous calls to _pushSegment .