1 | <?php declare(strict_types=1); |
||
5 | class RuntimeArgument implements CodeGenerator |
||
6 | { |
||
7 | use DefaultValueTrait; |
||
8 | |||
9 | private $type; |
||
10 | private $name; |
||
11 | private $variadic = false; |
||
12 | |||
13 | 6 | public function __construct(string $name, string $type = '') |
|
18 | |||
19 | 1 | public function makeVariadic(bool $variadic = true): self |
|
25 | |||
26 | 1 | public function isVariadic(): bool |
|
30 | |||
31 | 3 | public function getName(): string |
|
35 | |||
36 | 2 | public function getType(): string |
|
40 | |||
41 | 1 | public function setType(string $type): self |
|
47 | |||
48 | 5 | public function generateCode(): string |
|
72 | |||
73 | public function __toString(): string |
||
77 | } |
||
78 |