lib/DataSift/StreamConsumer.php
protected function onStop($reason = '')
    {
        //var_dump(debug_backtrace());
        if ($this->_state != self::STATE_STOPPING and $reason == '') {
            $reason = 'Unexpected';
        }

        $this->_state = self::STATE_STOPPED;
        $this->onStopped($reason);
    }
protected function onStop($reason = '')
    {
        //var_dump(debug_backtrace());
        if ($this->_state != self::STATE_STOPPING and $reason == '') {
            $reason = 'Unexpected';
        }

        $this->_state = self::STATE_STOPPED;
        $this->onStopped($reason);
    }
protected function onStop ( $ reason = '' ) { //var_dump(debug_backtrace()); if ( $ this -> _state != self :: STATE_STOPPING and $ reason == '' ) { $ reason = 'Unexpected' ; } $ this -> _state = self :: STATE_STOPPED ; $ this -> onStopped ( $ reason ) ; }
Default implementation of onStop. It's unlikely that this method will
ever be used in isolation, but rather it should be called as the final
step in the extending class's implementation.

@param string $reason Reason why the stream was stopped

@return void
@throws DataSift_Exception_InvalidData
Default implementation of onStop . It s unlikely that this method will ever be used in isolation but rather it should be called as the final step in the extending class s implementation .