public function set(string $name, $value)
    {
        if (! array_key_exists($name, $this->map)) {
            throw new \InvalidArgumentException("Setting $name does not exists");
        }
        $this->map[$name] = $value;
    }
public function set(string $name, $value)
    {
        if (! array_key_exists($name, $this->map)) {
            throw new \InvalidArgumentException("Setting $name does not exists");
        }
        $this->map[$name] = $value;
    }
public function set ( string $ name , $ value ) { if ( ! array_key_exists ( $ name , $ this -> map ) ) { throw new \ InvalidArgumentException ( "Setting $name does not exists" ) ; } $ this -> map [ $ name ] = $ value ; }
Set a setting, if it does dot exists then throws an exception

@param string $name
@param mixed $value
@throws \InvalidArgumentException if setting does not exists
Set a setting if it does dot exists then throws an exception