public static function GetFromFile(string $Filename) : self { $Builder = new static(); $Builder->SetConfig(Nether\Senpai\Config::GetFromFile($Filename)); return $Builder; }
public function HandleUpdate() : int { /*// this will handle updating a project file to add any missing values. //*/ $Filename = $this->GetFilename(); $File = basename($Filename); $Dir = dirname($Filename); $this::Message("Updating {$File}"); $Config = Nether\Senpai\Config::GetFromFile($Filename); $Config->Write(); return 0; }