Lines Matching refs:index
22 function offsetExists($index): bool {
23 echo __METHOD__ . "($this->element, $index)\n";
24 return array_key_exists($index, $this->oarray[$this->element]);
27 function offsetGet($index): mixed {
28 echo __METHOD__ . "($this->element, $index)\n";
29 …return isset($this->oarray[$this->element][$index]) ? $this->oarray[$this->element][$index] : NULL;
32 function offsetSet($index, $value): void {
33 echo __METHOD__ . "($this->element, $index, $value)\n";
34 $this->oarray[$this->element][$index] = $value;
37 function offsetUnset($index): void {
38 echo __METHOD__ . "($this->element, $index)\n";
39 unset($this->oarray[$this->element][$index]);
52 function offsetExists($index): bool
54 return array_key_exists($index, $this->person);
57 function offsetGet($index): mixed
59 if (is_array($this->person[$index]))
61 return new ArrayAccessReferenceProxy($this, $this->person, $index);
65 return $this->person[$index];
69 function offsetSet($index, $value): void
71 $this->person[$index] = $value;
74 function offsetUnset($index): void
76 unset($this->person[$index]);