diff --git a/app/models/Data/User.php b/app/models/Data/User.php index 524ac56..82c438e 100644 --- a/app/models/Data/User.php +++ b/app/models/Data/User.php @@ -30,6 +30,10 @@ class User extends Model protected $github_user; + protected $gitlab_id; + + protected $google_id; + public function initialize() { $this->useDynamicUpdate(true); @@ -207,6 +211,42 @@ class User extends Model return $this; } + /** + * @return mixed + */ + public function getGitlabId() + { + return $this->gitlab_id; + } + + /** + * @param mixed $gitlab_id + * @return User + */ + public function setGitlabId($gitlab_id) + { + $this->gitlab_id = $gitlab_id; + return $this; + } + + /** + * @return mixed + */ + public function getGoogleId() + { + return $this->google_id; + } + + /** + * @param mixed $google_id + * @return User + */ + public function setGoogleId($google_id) + { + $this->google_id = $google_id; + return $this; + } + static public function createFromOAuthData(UserDataInterface $data) { $oauth_id = 'set' . $data->getProvider() . 'Id';