@@ 63-71 (lines=9) @@ | ||
60 | * |
|
61 | * @return boolean |
|
62 | */ |
|
63 | public function offsetExists($offset) |
|
64 | { |
|
65 | $offset = filter_var($offset, FILTER_VALIDATE_INT); |
|
66 | if ($offset !== false) { |
|
67 | return array_key_exists($offset, $this->container); |
|
68 | } |
|
69 | ||
70 | return false; |
|
71 | } |
|
72 | ||
73 | /** |
|
74 | * Unsets the value at the specified index. |
|
@@ 95-103 (lines=9) @@ | ||
92 | * |
|
93 | * @return EntityInterface|null |
|
94 | */ |
|
95 | public function offsetGet($offset) |
|
96 | { |
|
97 | $offset = filter_var($offset, FILTER_VALIDATE_INT); |
|
98 | if ($offset === false) { |
|
99 | return null; |
|
100 | } |
|
101 | ||
102 | return Util\Arrays::get($this->container, $offset); |
|
103 | } |
|
104 | ||
105 | /** |
|
106 | * Converts this entity collection into an xml string. |