public function handleStatus($ret)
    {
        if ($ret === self::EVENT_CONFIG_UPDATED) {
            $this->onConfigUpdated();
            return true;
        } elseif ($ret === self::EVENT_GRACEFUL_SHUTDOWN) {
            return $this->onShutdown(true);
        } elseif ($ret === self::EVENT_SHUTDOWN) {
            return $this->onShutdown();
        }
        return false;
    }
public function handleStatus($ret)
    {
        if ($ret === self::EVENT_CONFIG_UPDATED) {
            $this->onConfigUpdated();
            return true;
        } elseif ($ret === self::EVENT_GRACEFUL_SHUTDOWN) {
            return $this->onShutdown(true);
        } elseif ($ret === self::EVENT_SHUTDOWN) {
            return $this->onShutdown();
        }
        return false;
    }
public function handleStatus ( $ ret ) { if ( $ ret === self :: EVENT_CONFIG_UPDATED ) { $ this -> onConfigUpdated ( ) ; return true ; } elseif ( $ ret === self :: EVENT_GRACEFUL_SHUTDOWN ) { return $ this -> onShutdown ( true ) ; } elseif ( $ ret === self :: EVENT_SHUTDOWN ) { return $ this -> onShutdown ( ) ; } return false ; }
Handle the worker status
@param  integer $ret Status code
@return boolean Result
Handle the worker status