1 | <?php |
||
20 | final class FunctionCallArgumentListGenerator extends AbstractGenerator |
||
21 | { |
||
22 | /** |
||
23 | * List of function arguments |
||
24 | * |
||
25 | * @var string[] |
||
26 | */ |
||
27 | private $arguments; |
||
28 | |||
29 | /** |
||
30 | * If function contains optional arguments |
||
31 | * |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $hasOptionals = false; |
||
35 | |||
36 | /** |
||
37 | * Definition of variadic argument or null if function is not variadic |
||
38 | * |
||
39 | * @var mixed|null |
||
40 | */ |
||
41 | private $variadicArgument = null; |
||
42 | |||
43 | /** |
||
44 | * FunctionCallArgumentList constructor. |
||
45 | * |
||
46 | * @param ReflectionFunctionAbstract $functionLike Instance of function or method to call |
||
47 | */ |
||
48 | 16 | public function __construct(ReflectionFunctionAbstract $functionLike) |
|
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | 16 | public function generate() |
|
82 | } |
||
83 |