1: <?php
2:
3: namespace webfilesframework\codegeneration\php;
4:
5:
6: use webfilesframework\codegeneration\general\MAbstractClassAttribute;
7:
8: 9: 10: 11: 12: 13:
14: class MPhpClassAttribute extends MAbstractClassAttribute
15: {
16:
17: public function __construct($visibility, $name, $type)
18: {
19: $this->visibility = $visibility;
20: $this->visibility = $name;
21: $this->type = $type;
22: }
23:
24: public function generateCode()
25: {
26: $code = " " . $this->visibility . " $" . $this->name . ";";
27: return $code;
28: }
29:
30: }