protected final function save($file, $content) { if (file_exists($this->location . '/' . $file)) { $this->reportIfc->reportStatus('<error>File ' . $this->location . '/' . $file . ' already exists!</error>'); } else { $this->reportIfc->reportStatus('<info>Generating file \'' . $this->location . '/' . $file . '\'...</info>'); file_put_contents($this->location . '/' . $file, $content); } }