public function addOption($name, $value)
    {
        if (strpos($name, '.') !== false) {
            $method = explode('.', $name);
            $method = array_shift($method).implode('', array_map('ucfirst', $method));
            $this->configuration->$method($value);
        } elseif ($name === 'user_agent') {
            $this->setUserAgent($value);
        } else {
            $this->configuration->$name = $value;
        }

        return $this;
    }
public function addOption($name, $value)
    {
        if (strpos($name, '.') !== false) {
            $method = explode('.', $name);
            $method = array_shift($method).implode('', array_map('ucfirst', $method));
            $this->configuration->$method($value);
        } elseif ($name === 'user_agent') {
            $this->setUserAgent($value);
        } else {
            $this->configuration->$name = $value;
        }

        return $this;
    }
public function addOption ( $ name , $ value ) { if ( strpos ( $ name , '.' ) !== false ) { $ method = explode ( '.' , $ name ) ; $ method = array_shift ( $ method ) . implode ( '' , array_map ( 'ucfirst' , $ method ) ) ; $ this -> configuration -> $ method ( $ value ) ; } elseif ( $ name === 'user_agent' ) { $ this -> setUserAgent ( $ value ) ; } else { $ this -> configuration -> $ name = $ value ; } return $ this ; }
Add an option for current request
@param mixed $name
@param mixed $value
@return AbstractRequest
Add an option for current request