| 1 | <?php |
||
| 19 | trait HasPassedArguments |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var array|ArgumentInvocation[] |
||
| 23 | */ |
||
| 24 | protected $arguments = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return iterable|ArgumentInvocation[] |
||
| 28 | */ |
||
| 29 | public function getArguments(): iterable |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $name |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function hasArgument(string $name): bool |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $name |
||
| 45 | * @return null|ArgumentInvocation |
||
| 46 | */ |
||
| 47 | public function getArgument(string $name): ?ArgumentInvocation |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param ArgumentInvocation $argument |
||
| 54 | * @return ProvidesPassedArguments |
||
| 55 | */ |
||
| 56 | public function withArgument(ArgumentInvocation $argument): ProvidesPassedArguments |
||
| 62 | } |
||
| 63 |