1 | <?php |
||
17 | trait HasArguments |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $arguments = []; |
||
23 | |||
24 | /** |
||
25 | * @return \Traversable |
||
26 | */ |
||
27 | public function getIterator(): \Traversable |
||
33 | |||
34 | /** |
||
35 | * @param string|int $offset |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function offsetExists($offset): bool |
||
42 | |||
43 | /** |
||
44 | * @param string|int $name |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function hasArgument($name): bool |
||
51 | |||
52 | /** |
||
53 | * @param mixed $offset |
||
54 | * @return mixed|null |
||
55 | */ |
||
56 | public function offsetGet($offset) |
||
60 | |||
61 | /** |
||
62 | * @param string|int $name |
||
63 | * @return mixed|null |
||
64 | */ |
||
65 | public function getArgument($name) |
||
69 | |||
70 | /** |
||
71 | * @param string|int $offset |
||
72 | * @param mixed $value |
||
73 | */ |
||
74 | public function offsetSet($offset, $value): void |
||
78 | |||
79 | /** |
||
80 | * @param string|int $name |
||
81 | * @param mixed $value |
||
82 | * @return ProvidesArguments |
||
83 | */ |
||
84 | public function withArgument($name, $value): ProvidesArguments |
||
90 | |||
91 | /** |
||
92 | * @param string|int $offset |
||
93 | */ |
||
94 | public function offsetUnset($offset): void |
||
98 | |||
99 | /** |
||
100 | * @return iterable |
||
101 | */ |
||
102 | public function getArguments(): iterable |
||
106 | } |
||
107 |