@@ 170-184 (lines=15) @@ | ||
167 | * |
|
168 | * @return self |
|
169 | */ |
|
170 | public static function func( |
|
171 | $returnsReference, |
|
172 | $name, |
|
173 | array $parameterExpressions |
|
174 | ) { |
|
175 | return new self( |
|
176 | self::TYPE_FUNCTION, |
|
177 | $returnsReference, |
|
178 | null, |
|
179 | null, |
|
180 | null, |
|
181 | $name, |
|
182 | $parameterExpressions, |
|
183 | null); |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * Creates a closure signature with the supplied parameters. |
|
@@ 195-209 (lines=15) @@ | ||
192 | * |
|
193 | * @return self |
|
194 | */ |
|
195 | public static function closure( |
|
196 | $returnsReference, |
|
197 | array $parameterExpressions, |
|
198 | array $scopedVariableNames |
|
199 | ) { |
|
200 | return new self( |
|
201 | self::TYPE_CLOSURE, |
|
202 | $returnsReference, |
|
203 | null, |
|
204 | null, |
|
205 | null, |
|
206 | null, |
|
207 | $parameterExpressions, |
|
208 | $scopedVariableNames); |
|
209 | } |
|
210 | ||
211 | /** |
|
212 | * Creates a method signature with the supplied parameters. |