cfmgrv3/app/Entities/Cloudflare/FixedRecordEntity.php

26 lines
554 B
PHP

<?php
namespace App\Entities\Cloudflare;
use App\Entities\CommonEntity;
class FiexedRecordEntity extends CommonEntity
{
protected $datamap = [];
protected $dates = ['created_at', 'updated_at', 'deleted_at'];
protected $casts = [];
public function getPrimaryKey()
{
return $this->attributes['uid'];
}
public function getTitle()
{
return $this->attributes['host'];
}
public function __toString()
{
return "uid:{$this->attributes['uid']}|host:{$this->attributes['host']}";
}
}