src/Configurator.php
public function pushOption(string $name, array ...$args): Configurator
    {
        $this->validateName($name);

        if (empty($args)) {
            throw new InvalidArgumentNumberException();
        }

        foreach ($args as $arg) {
            if (is_array($arg)) {
                foreach ($arg as $key => $value) {
                    $this->config[$name][$key] = $value;
                }
            }
        }

        return $this;
    }
public function pushOption(string $name, array ...$args): Configurator
    {
        $this->validateName($name);

        if (empty($args)) {
            throw new InvalidArgumentNumberException();
        }

        foreach ($args as $arg) {
            if (is_array($arg)) {
                foreach ($arg as $key => $value) {
                    $this->config[$name][$key] = $value;
                }
            }
        }

        return $this;
    }
public function pushOption ( string $ name , array ... $ args ) : Configurator { $ this -> validateName ( $ name ) ; if ( empty ( $ args ) ) { throw new InvalidArgumentNumberException ( ) ; } foreach ( $ args as $ arg ) { if ( is_array ( $ arg ) ) { foreach ( $ arg as $ key => $ value ) { $ this -> config [ $ name ] [ $ key ] = $ value ; } } } return $ this ; }
Push the listed args to the named option.

Usage:
```php
$this->pushOption('key', ['key1' => 'value1'], ['key2' => ['value2' => 'value3']]);
```
Result:
```php
'key' => [
'key1' => 'value1',
'key2' => [
value2 => value3
]
]
```

@param string $name The name of the option.
@param array ...$args A list of values to push into the option key.

@throws \Xety\Configurator\Exceptions\InvalidArgumentNumberException
When the args list is empty.

@return \Xety\Configurator\Configurator
Push the listed args to the named option .