public function setOption( $option, $value )
    {
        switch ( $option )
        {
            case 'keep-alive':
                $this->options[$option] = (bool) $value;
                break;

            case 'http-log':
            case 'password':
            case 'username':
                $this->options[$option] = $value;
                break;

            default:
                throw new phpillowOptionException( $option );
        }
    }
public function setOption( $option, $value )
    {
        switch ( $option )
        {
            case 'keep-alive':
                $this->options[$option] = (bool) $value;
                break;

            case 'http-log':
            case 'password':
            case 'username':
                $this->options[$option] = $value;
                break;

            default:
                throw new phpillowOptionException( $option );
        }
    }
public function setOption ( $ option , $ value ) { switch ( $ option ) { case 'keep-alive' : $ this -> options [ $ option ] = ( bool ) $ value ; break ; case 'http-log' : case 'password' : case 'username' : $ this -> options [ $ option ] = $ value ; break ; default : throw new phpillowOptionException ( $ option ) ; } }
Set option value

Set the value for an connection option. Throws an
phpillowOptionException for unknown options.

@param string $option
@param mixed $value
@return void
Set option value