public function setConfigKeyForFilename(
        string $filename,
        string $configKey,
        $configValue
    ): self {
        if (!isset($this->config[$filename])) {
            $this->config[$filename] = [];
        }
        
        if (!isset($this->configFiles[$filename])) {
            $this->configFiles[$filename] = $filename;
        }
        
        if (is_array($this->config[$filename])) {
            $this->config[$filename][$configKey] = $configValue;
        } else {
            throw new Exception(
                'The config key '.$configKey.' can not be added.',
                $this::ERR_KEY_NOT_ADDED
            );
        }
        
        return $this;
    }
public function setConfigKeyForFilename(
        string $filename,
        string $configKey,
        $configValue
    ): self {
        if (!isset($this->config[$filename])) {
            $this->config[$filename] = [];
        }
        
        if (!isset($this->configFiles[$filename])) {
            $this->configFiles[$filename] = $filename;
        }
        
        if (is_array($this->config[$filename])) {
            $this->config[$filename][$configKey] = $configValue;
        } else {
            throw new Exception(
                'The config key '.$configKey.' can not be added.',
                $this::ERR_KEY_NOT_ADDED
            );
        }
        
        return $this;
    }
public function setConfigKeyForFilename ( string $ filename , string $ configKey , $ configValue ) : self { if ( ! isset ( $ this -> config [ $ filename ] ) ) { $ this -> config [ $ filename ] = [ ] ; } if ( ! isset ( $ this -> configFiles [ $ filename ] ) ) { $ this -> configFiles [ $ filename ] = $ filename ; } if ( is_array ( $ this -> config [ $ filename ] ) ) { $ this -> config [ $ filename ] [ $ configKey ] = $ configValue ; } else { throw new Exception ( 'The config key ' . $ configKey . ' can not be added.' , $ this :: ERR_KEY_NOT_ADDED ) ; } return $ this ; }
Setter to modify a config key into the config of a filename

@param string $filename The filename config to modify
@param string $configKey The name of the key to modify
@param mixed $configValue The new value for the config key

@return $this

@throws \Exception If the key has not been found
Setter to modify a config key into the config of a filename