public function set($key, $value)
    {
        if($this->validate($key, $value)) {
            $this->options[$key] = $value;
        }
    }
public function set($key, $value)
    {
        if($this->validate($key, $value)) {
            $this->options[$key] = $value;
        }
    }
public function set ( $ key , $ value ) { if ( $ this -> validate ( $ key , $ value ) ) { $ this -> options [ $ key ] = $ value ; } }
Sets a configuration option.

Throws an exception if the specified option does
not exist, or if it's an invalid type.

@param string $key
@param mixed  $value

@throws ConfigurationException When an option value given is an invalid type.
Sets a configuration option .