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

34 lines
769 B
PHP

<?php
namespace App\Entities;
use App\Entities\CommonEntity;
use App\Models\UserSNSModel as Model;
class UserSNSEntity 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;
//Common Function
public function getParent(): int|null
{
return $this->attributes[Model::PARENT];
}
public function getID(): string
{
return $this->attributes['id'];
}
public function getSite(): string
{
return $this->attributes['site'];
}
public function getEmail(): string
{
return $this->attributes['email'];
}
}