public function set($dotNotationKeys, $value)
    {
        $keys = is_array($dotNotationKeys) ? $dotNotationKeys : [$dotNotationKeys => $value];

        foreach ($keys as $key => $value) {
            DotArray::set($this->items, $key, $value);
        }
    }
public function set($dotNotationKeys, $value)
    {
        $keys = is_array($dotNotationKeys) ? $dotNotationKeys : [$dotNotationKeys => $value];

        foreach ($keys as $key => $value) {
            DotArray::set($this->items, $key, $value);
        }
    }
public function set ( $ dotNotationKeys , $ value ) { $ keys = is_array ( $ dotNotationKeys ) ? $ dotNotationKeys : [ $ dotNotationKeys => $ value ] ; foreach ( $ keys as $ key => $ value ) { DotArray :: set ( $ this -> items , $ key , $ value ) ; } }
Set a new value for the given item in the configuration.

@since 3.0.0

@param array|string $dotNotationKeys Key to be assigned, which also becomes the property
@param mixed $value Value to be assigned to the parameter key

@return null
Set a new value for the given item in the configuration .