| 1 | <?php |
||
| 20 | trait HasArguments |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var array|ArgumentDefinition[] |
||
| 24 | */ |
||
| 25 | protected $arguments = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return iterable|ArgumentDefinition[] |
||
| 29 | */ |
||
| 30 | public function getArguments(): iterable |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $name |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | public function hasArgument(string $name): bool |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $name |
||
| 46 | * @return null|ArgumentDefinitionInterface |
||
| 47 | */ |
||
| 48 | public function getArgument(string $name): ?ArgumentDefinitionInterface |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param ArgumentDefinitionInterface ...$arguments |
||
| 55 | * @return ProvidesArguments|$this |
||
| 56 | */ |
||
| 57 | 9 | public function withArgument(ArgumentDefinitionInterface ...$arguments): ProvidesArguments |
|
| 65 | } |
||
| 66 |