31 lines
686 B
PHP
31 lines
686 B
PHP
<?php
|
|
|
|
namespace App\Entities\Cloudflare;
|
|
|
|
use App\Entities\CommonEntity;
|
|
|
|
class AuthEntity extends CommonEntity
|
|
{
|
|
public function __toString()
|
|
{
|
|
return "{$this->getPK()}|{$this->getTitle()}|{$this->getKey()}|{$this->attributes['type']}|{$this->attributes['status']}";
|
|
}
|
|
public function getPK(): int
|
|
{
|
|
return $this->attributes['uid'];
|
|
}
|
|
public function getTitle(): string
|
|
{
|
|
return $this->attributes['id'];
|
|
}
|
|
public function setTitle(string $title): void
|
|
{
|
|
$this->attributes['id'] = $title;
|
|
}
|
|
//Common Function
|
|
public function getKey(): string
|
|
{
|
|
return $this->attributes['key'];
|
|
}
|
|
}
|