1: <?php
2:
3: namespace webfilesframework\codegeneration;
4:
5: 6: 7: 8: 9: 10:
11: class MWebfileClassGeneration
12: {
13:
14: public $webfileDefinition;
15:
16:
17: public function __construct($webfileDefinition)
18: {
19: $this->webfileDefinition = $webfileDefinition;
20: }
21:
22:
23: 24: 25: 26: 27: 28:
29: public function generateCodeForProgrammingLangugage(MProgrammingLanguage $programmingLanguage)
30: {
31: $abstractClass = MCodeItemFactory::createClass($programmingLanguage);
32: return $abstractClass->generateCode();
33: }
34:
35: }