app/models/Data/User.php: adding name, github_id, github_user
This commit is contained in:
parent
643dff96c1
commit
06126274d2
1 changed files with 60 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Reference in a new issue