src/Configurator.php
public function setOption(string $name, $value): Configurator
    {
        $this->validateName($name);
        $this->config[$name] = $value;

        return $this;
    }
public function setOption(string $name, $value): Configurator
    {
        $this->validateName($name);
        $this->config[$name] = $value;

        return $this;
    }
public function setOption ( string $ name , $ value ) : Configurator { $ this -> validateName ( $ name ) ; $ this -> config [ $ name ] = $ value ; return $ this ; }
Set a value to the given option.

Usage:
```php
$this->setOption('key', 'value');
$this->setOption('key', ['key2' => ['value2']]);
```

@param string $name The option name.
@param mixed $value The option value.

@return \Xety\Configurator\Configurator
Set a value to the given option .