public function setConfigs(array $args) {
        if (!is_array(current($args))) {
            $args = [
                $this->currentName => $args
            ];
        }
        foreach ($args as $key => $item) {
            if (array_key_exists($key, $this->configs)) {
                $this->configs[$key] = array_merge($this->configs[$key], $item);
            } else {
                $this->configs[$key] = $item;
            }
        }
        return $this;
    }
public function setConfigs(array $args) {
        if (!is_array(current($args))) {
            $args = [
                $this->currentName => $args
            ];
        }
        foreach ($args as $key => $item) {
            if (array_key_exists($key, $this->configs)) {
                $this->configs[$key] = array_merge($this->configs[$key], $item);
            } else {
                $this->configs[$key] = $item;
            }
        }
        return $this;
    }
public function setConfigs ( array $ args ) { if ( ! is_array ( current ( $ args ) ) ) { $ args = [ $ this -> currentName => $ args ] ; } foreach ( $ args as $ key => $ item ) { if ( array_key_exists ( $ key , $ this -> configs ) ) { $ this -> configs [ $ key ] = array_merge ( $ this -> configs [ $ key ] , $ item ) ; } else { $ this -> configs [ $ key ] = $ item ; } } return $ this ; }
ADD 2D ARRAY
@param array $args
@return $this
ADD 2D ARRAY