1 | <?php |
||
5 | class CustomFieldsCollection implements \ArrayAccess, \Iterator, \Countable |
||
6 | { |
||
7 | /** @var array|CustomField[] */ |
||
8 | protected $customFields; |
||
9 | |||
10 | /** |
||
11 | * @param array|CustomField[] $customFields |
||
12 | */ |
||
13 | public function __construct(array $customFields) |
||
18 | |||
19 | /** |
||
20 | * @return array |
||
21 | */ |
||
22 | public function toArray() |
||
32 | |||
33 | /** |
||
34 | * @return array|CustomField[] |
||
35 | */ |
||
36 | public function getItems() |
||
40 | |||
41 | /** {@inheritdoc} */ |
||
42 | public function offsetExists($offset) |
||
46 | |||
47 | /** {@inheritdoc} */ |
||
48 | public function offsetGet($offset) |
||
52 | |||
53 | /** {@inheritdoc} */ |
||
54 | public function offsetSet($offset, $value) |
||
58 | |||
59 | /** {@inheritdoc} */ |
||
60 | public function offsetUnset($offset) |
||
64 | |||
65 | /** |
||
66 | * @return CustomField|null |
||
67 | */ |
||
68 | public function current() |
||
72 | |||
73 | /** |
||
74 | * @return CustomField|null |
||
75 | */ |
||
76 | public function next() |
||
80 | |||
81 | /** {@inheritdoc} */ |
||
82 | public function key() |
||
86 | |||
87 | /** {@inheritdoc} */ |
||
88 | public function valid() |
||
92 | |||
93 | /** {@inheritdoc} */ |
||
94 | public function rewind() |
||
98 | |||
99 | /** {@inheritdoc} */ |
||
100 | public function count() |
||
104 | } |
||
105 |