From 06126274d2ee654aa9361f7a7d16c0c0fbc987e2 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 30 Mar 2018 11:15:50 +0200 Subject: [PATCH] app/models/Data/User.php: adding name, github_id, github_user --- app/models/Data/User.php | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/app/models/Data/User.php b/app/models/Data/User.php index 4e9b26a..1392420 100644 --- a/app/models/Data/User.php +++ b/app/models/Data/User.php @@ -15,12 +15,18 @@ class User extends Model protected $username; + protected $name; + protected $email; protected $status; protected $password; + protected $github_id; + + protected $github_user; + public function initialize() { $this->useDynamicUpdate(true); @@ -62,6 +68,24 @@ class User extends Model return $this; } + /** + * @return mixed + */ + public function getName() + { + return $this->name; + } + + /** + * @param mixed $name + * @return User + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** * @return mixed */ @@ -127,6 +151,42 @@ class User extends Model return $this; } + /** + * @return mixed + */ + public function getGithubUser() + { + return $this->github_user; + } + + /** + * @param mixed $github_user + * @return User + */ + public function setGithubUser($github_user) + { + $this->github_user = $github_user; + return $this; + } + + /** + * @return mixed + */ + public function getGithubId() + { + return $this->github_id; + } + + /** + * @param mixed $github_id + * @return User + */ + public function setGithubId($github_id) + { + $this->github_id = $github_id; + return $this; + } + /** * Find the first user by Username or Email *