1 | <?php |
||
36 | class Method |
||
37 | { |
||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $name; |
||
42 | /** |
||
43 | * @var Parameter[] |
||
44 | */ |
||
45 | private $parameters; |
||
46 | /** |
||
47 | * @var Parameter |
||
48 | */ |
||
49 | private $return; |
||
50 | |||
51 | /** |
||
52 | * @param string $name |
||
53 | * @param Parameter[] $parameters |
||
54 | * @param Parameter $return |
||
55 | */ |
||
56 | 6 | public function __construct($name, array $parameters, Parameter $return = null) |
|
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | 1 | public function getName() |
|
70 | |||
71 | /** |
||
72 | * @return Parameter[] |
||
73 | */ |
||
74 | 1 | public function getParameters() |
|
78 | |||
79 | /** |
||
80 | * @return Parameter|null |
||
81 | */ |
||
82 | 1 | public function getHeaderParameter() |
|
88 | |||
89 | /** |
||
90 | * @return Parameter[]|array |
||
91 | */ |
||
92 | public function getNoHeaderParameters() |
||
98 | |||
99 | /** |
||
100 | * @return Node[] |
||
101 | */ |
||
102 | 1 | public function getNoHeaderParametersNodes() |
|
106 | |||
107 | /** |
||
108 | * @return Parameter |
||
109 | */ |
||
110 | 1 | public function getReturn() |
|
114 | |||
115 | /** |
||
116 | * @return Parameter|null |
||
117 | */ |
||
118 | 1 | public function getHeaderReturn() |
|
125 | |||
126 | /** |
||
127 | * @return Node|null |
||
128 | */ |
||
129 | 1 | public function getReturnNode() |
|
133 | } |
||
134 |