public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | Offset |
return | boolean |
public function offsetExists($offset)
{
$this->displayWarning();
if (is_object($this->object) && !$this->object instanceof \ArrayAccess) {
return isset($this->object->{$offset});
} else {
return array_key_exists($offset, $this->object);
}
}