| 1 | <?php |
||
| 10 | class Argument |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Type |
||
| 19 | */ |
||
| 20 | protected $type; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var Value |
||
| 24 | */ |
||
| 25 | protected $defaultValue; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | protected $isReference; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var bool |
||
| 34 | */ |
||
| 35 | protected $isVariadic; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $name |
||
| 39 | * @param Type $type |
||
| 40 | * @param Value $defaultValue |
||
| 41 | * @param bool $isReference |
||
| 42 | * @param bool $isVariadic |
||
| 43 | */ |
||
| 44 | 1 | public function __construct(string $name, Type $type, Value $defaultValue, bool $isReference = false, bool $isVariadic = false) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 1 | public function name(): string |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return Type |
||
| 63 | */ |
||
| 64 | 1 | public function type(): Type |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @return Value |
||
| 71 | */ |
||
| 72 | 1 | public function defaultValue(): Value |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @return bool |
||
| 79 | */ |
||
| 80 | 1 | public function isReference(): bool |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @return bool |
||
| 87 | */ |
||
| 88 | 1 | public function isVariadic(): bool |
|
| 92 | } |
||
| 93 |