1: <?php
2:
3: namespace webfilesframework\codegeneration\php;
4:
5: use webfilesframework\codegeneration\general\MAbstractClassMethodParameter;
6:
7: /**
8: * description
9: *
10: * @author Sebastian Monzel < mail@sebastianmonzel.de >
11: * @since 0.1.7
12: */
13: class MPhpClassMethodParameter extends MAbstractClassMethodParameter
14: {
15:
16: public function __construct($name, $type)
17: {
18: $this->name = $name;
19: $this->type = $type;
20: }
21:
22: public function generateCode()
23: {
24: return $this->type . " $" . $this->name;
25: }
26:
27: }