/** * Check if the offset exists * * Required by interface ArrayAccess * * @param int $offset * @return bool */ public function offsetExists($offset) { return ObjectArray::offsetExists($offset); }
/** * Test existence of a property * * @param string $name The property name. * @return boolean */ public function hasProperty($name) { $result = false; //Handle computed properties if (!parent::offsetExists($name) && !empty($name)) { $properties = $this->getComputedProperties(); if (isset($properties[$name])) { $result = true; } } else { $result = true; } return $result; }