示例#1
0
 /**
  * @inheritdoc
  */
 public function __unset($name)
 {
     if (array_key_exists($name, $this->properties)) {
         unset($this->properties[$name]);
         $this->properties[] = $name;
     } elseif (!in_array($name, $this->properties)) {
         parent::__unset($name);
     }
 }