Lines Matching refs:offsetExists
6 // overrides both offsetExists and offsetGet
9 public function offsetExists($offset): bool {
11 return parent::offsetExists($offset);
20 // overrides only offsetExists
23 public function offsetExists($offset): bool {
25 return parent::offsetExists($offset);
54 echo "==== class with offsetExists() and offsetGet() ====\n";
56 var_dump($object->offsetExists('foo'), isset($object['foo']), empty($object['foo']));
57 var_dump($object->offsetExists('bar'), isset($object['bar']), empty($object['bar']));
61 echo "==== class with offsetExists() ====\n";
63 var_dump($object->offsetExists('foo'), isset($object['foo']), empty($object['foo']));
64 var_dump($object->offsetExists('bar'), isset($object['bar']), empty($object['bar']));
70 var_dump($object->offsetExists('foo'), isset($object['foo']), empty($object['foo']));
71 var_dump($object->offsetExists('bar'), isset($object['bar']), empty($object['bar']));
78 var_dump($object->offsetExists('foo'), $object->offsetExists('sbb'), isset($object['foo']), isset($…
82 ==== class with offsetExists() and offsetGet() ====
83 string(37) "Called: ArrayObjectBoth::offsetExists"
84 string(37) "Called: ArrayObjectBoth::offsetExists"
85 string(37) "Called: ArrayObjectBoth::offsetExists"
90 string(37) "Called: ArrayObjectBoth::offsetExists"
91 string(37) "Called: ArrayObjectBoth::offsetExists"
92 string(37) "Called: ArrayObjectBoth::offsetExists"
97 string(37) "Called: ArrayObjectBoth::offsetExists"
98 string(37) "Called: ArrayObjectBoth::offsetExists"
99 string(37) "Called: ArrayObjectBoth::offsetExists"
104 string(37) "Called: ArrayObjectBoth::offsetExists"
105 string(37) "Called: ArrayObjectBoth::offsetExists"
106 string(37) "Called: ArrayObjectBoth::offsetExists"
110 ==== class with offsetExists() ====
111 string(39) "Called: ArrayObjectExists::offsetExists"
112 string(39) "Called: ArrayObjectExists::offsetExists"
113 string(39) "Called: ArrayObjectExists::offsetExists"
117 string(39) "Called: ArrayObjectExists::offsetExists"
118 string(39) "Called: ArrayObjectExists::offsetExists"
119 string(39) "Called: ArrayObjectExists::offsetExists"
123 string(39) "Called: ArrayObjectExists::offsetExists"
124 string(39) "Called: ArrayObjectExists::offsetExists"
125 string(39) "Called: ArrayObjectExists::offsetExists"
129 string(39) "Called: ArrayObjectExists::offsetExists"
130 string(39) "Called: ArrayObjectExists::offsetExists"
131 string(39) "Called: ArrayObjectExists::offsetExists"