1 | <?php |
||
18 | class InvocationPrimitive implements InvocationInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var TypeNameInterface |
||
22 | */ |
||
23 | private $name; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $arguments = []; |
||
29 | |||
30 | /** |
||
31 | * InvocationPrimitive constructor. |
||
32 | * @param TypeNameInterface $name |
||
33 | */ |
||
34 | public function __construct(TypeNameInterface $name) |
||
38 | |||
39 | /** |
||
40 | * @return array|InvocationPrimitive[] |
||
41 | */ |
||
42 | public function getArguments(): array |
||
46 | |||
47 | /** |
||
48 | * @param string $name |
||
49 | * @param InvocationPrimitive|PrimitiveInterface $value |
||
50 | * @return InvocationPrimitive |
||
51 | */ |
||
52 | public function addArgument(string $name, $value): InvocationPrimitive |
||
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function hasArguments(): bool |
||
66 | |||
67 | /** |
||
68 | * @return TypeNameInterface |
||
69 | */ |
||
70 | public function getName(): TypeNameInterface |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function __toString(): string |
||
92 | } |
||
93 |