Beispiel #1
0
 /**
  * Sets user data value.
  * @param  string  property name
  * @param  mixed   property value
  * @return void
  */
 public function __set($key, $value)
 {
     $this->updating();
     if ($key === 'id' || $key === 'roles') {
         parent::__set($key, $value);
     } else {
         $this->data[$key] = $value;
     }
 }
Beispiel #2
0
 /**
  * Sets user data value.
  * @param  string  property name
  * @param  mixed   property value
  * @return void
  */
 public function __set($key, $value)
 {
     $this->updating();
     if (parent::__isset($key)) {
         parent::__set($key, $value);
     } else {
         $this->data[$key] = $value;
     }
 }