Lines Matching refs:index
11 function proxySet($element, $index, $value);
12 function proxyUnset($element, $index);
31 function offsetExists($index): bool {
32 echo __METHOD__ . "($this->element, $index)\n";
33 return array_key_exists($index, $this->object->proxyGet($this->element));
36 function offsetGet($index): mixed {
37 echo __METHOD__ . "($this->element, $index)\n";
39 return isset($tmp[$index]) ? $tmp[$index] : NULL;
42 function offsetSet($index, $value): void {
43 echo __METHOD__ . "($this->element, $index, $value)\n";
44 $this->object->proxySet($this->element, $index, $value);
47 function offsetUnset($index): void {
48 echo __METHOD__ . "($this->element, $index)\n";
49 $this->object->proxyUnset($this->element, $index);
62 function offsetExists($index): bool
64 return array_key_exists($index, $this->person);
67 function offsetGet($index): mixed
69 return new ArrayProxy($this, $index);
72 function offsetSet($index, $value): void
74 $this->person[$index] = $value;
77 function offsetUnset($index): void
79 unset($this->person[$index]);
87 function proxySet($element, $index, $value)
89 $this->person[$element][$index] = $value;
92 function proxyUnset($element, $index)
94 unset($this->person[$element][$index]);