dbms/app/Entities/UserEntity.php
2025-05-01 19:06:16 +09:00

22 lines
380 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;
public function getID(): string
{
return $this->attributes['id'];
}
public function getRole(): string
{
return $this->attributes['role'];
}
}