dbmsv2/app/Entities/UserEntity.php
2025-08-19 16:08:55 +09:00

30 lines
643 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 STATUS_NORMAL = "normal";
const STATUS_PAUSE = "pause";
const STATUS_TERMINATED = "terminated";
const DEFAULT_STATUS = self::STATUS_NORMAL;
public function getID(): string
{
return $this->attributes['id'];
}
public function getPassword(): string
{
return $this->attributes['passwd'];
}
public function getRole(): string
{
return $this->attributes['role'];
}
}