Automation/app/Entities/Cloudflare/ZoneEntity.php
2024-09-21 11:33:14 +09:00

27 lines
661 B
PHP

<?php
namespace App\Entities\Cloudflare;
use App\Entities\CommonEntity;
class ZoneEntity extends CommonEntity
{
public function __toString()
{
return "{$this->getPK()}|{$this->attributes['account_uid']}|{$this->getTitle()}|{$this->attributes['development_mode']}|{$this->attributes['ipv6']}|{$this->attributes['security_level']}";
}
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
}