39 lines
810 B
PHP
39 lines
810 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;
|
|
protected $attributes = [
|
|
'id' => '',
|
|
'site' => '',
|
|
'email' => "",
|
|
];
|
|
public function __construct(array|null $data = null)
|
|
{
|
|
parent::__construct($data);
|
|
}
|
|
//Common Function
|
|
public function getID(): string
|
|
{
|
|
return $this->attributes['id'];
|
|
}
|
|
public function getSite(): string
|
|
{
|
|
return $this->attributes['site'];
|
|
}
|
|
public function getEmail(): string
|
|
{
|
|
return $this->attributes['email'];
|
|
}
|
|
public function getParent(): int|string
|
|
{
|
|
return $this->attributes['user_uid'];
|
|
}
|
|
}
|