DataSift_StreamConsumer::onStop PHP Method

onStop() protected method

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.
protected onStop ( string $reason = '' ) : void
$reason string Reason why the stream was stopped
return void
    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);
    }