Example #1
0
 /**
  * Magic unsetter.
  *
  * @param string $name the property or param name to unset
  */
 public function __unset($name)
 {
     if ($name && $this->canSetProperty($name)) {
         parent::__unset($name);
     } else {
         unset($this->params[$name]);
     }
 }