示例#1
0
 /**
  * Determines whether a property is defined.
  * This method overrides parent implementation by returning true
  * if the collection contains the named key.
  * @param string the property name
  * @return boolean whether the property is defined
  */
 public function hasProperty($name)
 {
     return $this->contains($name) || parent::canGetProperty($name) || parent::canSetProperty($name);
 }