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