예제 #1
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'priority':
             if ($this->priority !== null) {
                 throw new Exception('Cannot unset priority once set');
             }
         default:
             return parent::__unset($name);
     }
 }
예제 #2
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'value':
             return $this->value = null;
         default:
             return parent::__unset($name);
     }
 }
예제 #3
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'primary':
         case 'secondary':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }
예제 #4
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'alias':
         case 'ready':
         case 'function':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }