28 lines
642 B
PHP
28 lines
642 B
PHP
<?php
|
|
|
|
namespace App\Entities\Cloudflare;
|
|
|
|
use App\Models\Cloudflare\AuditLogModel;
|
|
use App\Entities\CommonEntity;
|
|
|
|
class AuditLogEntity extends CommonEntity
|
|
{
|
|
public function __toString()
|
|
{
|
|
return "{$this->getPK()}|{$this->getTitle()}|{$this->attributes['status']}";
|
|
}
|
|
public function getPK(): string
|
|
{
|
|
return $this->attributes[AuditLogModel::PK];
|
|
}
|
|
public function getTitle(): string
|
|
{
|
|
return $this->attributes[AuditLogModel::TITLE];
|
|
}
|
|
public function setTitle(string $title): void
|
|
{
|
|
$this->attributes[AuditLogModel::TITLE] = $title;
|
|
}
|
|
//Common Function
|
|
}
|