src/Config/Config.php
function save(string $filename=null): bool
  {
    if (!empty($filename)) $this->filename = $filename;

    return ( file_put_contents($this->filename, json_encode($this->confValues,JSON_PRETTY_PRINT))!==false );
  }
function save(string $filename=null): bool
  {
    if (!empty($filename)) $this->filename = $filename;

    return ( file_put_contents($this->filename, json_encode($this->confValues,JSON_PRETTY_PRINT))!==false );
  }
function save ( string $ filename = null ) : bool { if ( ! empty ( $ filename ) ) $ this -> filename = $ filename ; return ( file_put_contents ( $ this -> filename , json_encode ( $ this -> confValues , JSON_PRETTY_PRINT ) ) !== false ) ; }
Save Configuration file

@param  string $filename       If null the last used filename is used
@return bool
Save Configuration file