Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class FunctionModel implements FunctionModelInterface |
||
25 | { |
||
26 | use NamespaceTrait; |
||
27 | use NameTrait; |
||
28 | use VisibilityTrait; |
||
29 | use StaticTrait; |
||
30 | use FinalTrait; |
||
31 | use AbstractTrait; |
||
32 | |||
33 | /** |
||
34 | * @var ParentInterface|null $parent The parent which contains this function. |
||
35 | */ |
||
36 | private $parent; |
||
37 | |||
38 | /** |
||
39 | * @var ParameterModel[] $parameters The function methods. |
||
40 | */ |
||
41 | private $parameters = []; |
||
42 | |||
43 | /** |
||
44 | * @var ReturnModel $return The function return. |
||
45 | */ |
||
46 | private $return; |
||
|
|||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function setParent(?ParentInterface $parent): void |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getParent(): ?ParentInterface |
||
60 | { |
||
61 | return $this->parent; |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function addParameter(ParameterModelInterface $parameter): void |
||
68 | { |
||
69 | $this->parameters[] = $parameter; |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getParameters(): array |
||
78 | } |
||
79 | } |
||
80 |