/** * Magic set * @param mixed $name * @param mixed $value */ public function __set($name, $value) { if ($name == 'sessionId') { $this->sessionid = $value; return true; } if ($name == 'userId') { $this->userid = $value; } parent::__set($name, $value); }
/** * Magic set * @param mixed $name * @param mixed $value */ public function __set($name, $value) { if ($name == 'permissionData') { $this->permissiondata = $value; return true; } parent::__set($name, $value); }