/**
  */
 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);
     }
 }
Exemple #2
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'value':
             return $this->value = null;
         default:
             return parent::__unset($name);
     }
 }
Exemple #3
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'primary':
         case 'secondary':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }
Exemple #4
0
 /**
  */
 public function __unset($name)
 {
     switch ($name) {
         case 'alias':
         case 'ready':
         case 'function':
             return $this->{$name} = null;
         default:
             return parent::__unset($name);
     }
 }