DataSift_StreamConsumer::onStop PHP 메소드

onStop() 보호된 메소드

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
리턴 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);
    }