Archived
1
0
Fork 0

app/models/Data/User.php: add type field.

This commit is contained in:
Henrik Hautakoski 2018-10-04 09:45:04 +02:00
parent ad2258607a
commit 388b5933cb
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -9,6 +9,9 @@ use Phalcon\Validation,
class User extends Base
{
const TYPE_USER = 'user';
const TYPE_ADMIN = 'admin';
const STATUS_ACTIVE = 'Active';
const STATUS_DELETED = 'Deleted';
const STATUS_SUSPENDED = 'Suspended';
@ -23,6 +26,8 @@ class User extends Base
protected $email;
protected $type;
protected $status;
protected $password;
@ -203,6 +208,24 @@ class User extends Base
return $this;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string $type
* @return User
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* @return string
*/