protected function writeClassTemplateToPath(ClassFile $cTemplate, $filepath) { if (false === file_put_contents($filepath, $cTemplate->render())) { throw RuntimeException("Can not write file {$filepath}"); } return true; }