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