27 lines
529 B
PHP
27 lines
529 B
PHP
<?php
|
|
|
|
namespace App\Entities;
|
|
|
|
use App\Entities\CommonEntity;
|
|
use App\Models\UserModel as Model;
|
|
|
|
class UserEntity extends CommonEntity
|
|
{
|
|
const PK = Model::PK;
|
|
const TITLE = Model::TITLE;
|
|
const DEFAULT_STATUS = STATUS['AVAILABLE'];
|
|
|
|
public function getID(): string
|
|
{
|
|
return $this->attributes['id'];
|
|
}
|
|
public function getPassword(): string
|
|
{
|
|
return $this->attributes['passwd'];
|
|
}
|
|
public function getRole(): string
|
|
{
|
|
return $this->attributes['role'];
|
|
}
|
|
}
|