private function getMasterTemplate($appName, $fileName, $masterName) { $buildMaster = new MasterPageTemplates($appName); switch ($fileName) { case $masterName: return $buildMaster->masterTemplate(); break; case 'css': return $buildMaster->cssTemplate(); break; case 'nav': return $buildMaster->navTemplate(); break; case 'scripts': return $buildMaster->scriptsTemplate(); break; case 'bottom': return $buildMaster->bottomTemplate(); break; case 'meta': return $buildMaster->metaTemplate(); break; case 'shim': return $buildMaster->shimTemplate(); break; default: return 'Filename not recongnized'; } }