1 | <?php |
||
16 | abstract class CompoundParameterCollection implements IteratorAggregate |
||
17 | { |
||
18 | use Indexable; |
||
19 | |||
20 | /** |
||
21 | * Name for the collection of compound parameters. Its prepend to the payload names |
||
22 | * of the compound parameter. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $name = ''; |
||
27 | |||
28 | /** |
||
29 | * Holds all the compound parameters that belong to the collection. |
||
30 | * |
||
31 | * @var CompoundParameter[] |
||
32 | */ |
||
33 | protected $items = []; |
||
34 | |||
35 | /** |
||
36 | * Indexes the name in case it has a placeholder. |
||
37 | * |
||
38 | * @param string $index |
||
39 | */ |
||
40 | public function __construct($index = '') |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | public function add(CompoundParameter $compoundParameter) |
||
52 | |||
53 | /** |
||
54 | * @internal |
||
55 | * @inheritDoc |
||
56 | */ |
||
57 | public function getParametersArray() |
||
73 | |||
74 | /** |
||
75 | * Gets the human readable items for the parameter. |
||
76 | * |
||
77 | * @internal |
||
78 | * @return array |
||
79 | */ |
||
80 | public function getReadableItems() |
||
90 | |||
91 | /** |
||
92 | * @internal |
||
93 | * @inheritDoc |
||
94 | */ |
||
95 | public function getIterator() |
||
99 | } |
||
100 |