Archived
1
0
Fork 0

app/models/Data/User.php: adding name, github_id, github_user

This commit is contained in:
Henrik Hautakoski 2018-03-30 11:15:50 +02:00
parent 643dff96c1
commit 06126274d2

View file

@ -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
*