public function setValue($value) {
        switch ($this->type) {
            case self::TYPE_BOOLEAN:
                $this->value = (bool) $value;
                break;
            case self::TYPE_STRING:
                $this->value = (string) $value;
                break;
        }
        return $this;
    }
public function setValue($value) {
        switch ($this->type) {
            case self::TYPE_BOOLEAN:
                $this->value = (bool) $value;
                break;
            case self::TYPE_STRING:
                $this->value = (string) $value;
                break;
        }
        return $this;
    }
public function setValue ( $ value ) { switch ( $ this -> type ) { case self :: TYPE_BOOLEAN : $ this -> value = ( bool ) $ value ; break ; case self :: TYPE_STRING : $ this -> value = ( string ) $ value ; break ; } return $ this ; }
Option value setter
@param string|bool $value option value
@return Option self
Option value setter