public function addOption($key, $value)
    {
        if (!$this->isOptionKeyValid($key)) {
            throw new \RuntimeException('Invalid socket option '.$key.'.');
        }

        $this->options[$key] = $value;

        return $this;
    }
public function addOption($key, $value)
    {
        if (!$this->isOptionKeyValid($key)) {
            throw new \RuntimeException('Invalid socket option '.$key.'.');
        }

        $this->options[$key] = $value;

        return $this;
    }
public function addOption ( $ key , $ value ) { if ( ! $ this -> isOptionKeyValid ( $ key ) ) { throw new \ RuntimeException ( 'Invalid socket option ' . $ key . '.' ) ; } $ this -> options [ $ key ] = $ value ; return $ this ; }
Overrides a default ZMQ option.

@param int   $key
@param mixed $value

@return \AlphaRPC\Common\Socket\Factory
@throws \RuntimeException
Overrides a default ZMQ option .