24 lines
733 B
PHP
24 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Entities\Cloudflare;
|
|
use App\Entities\Cloudflare\CloudflareEntity;
|
|
class AccountEntity extends CloudflareEntity
|
|
{
|
|
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['title'];
|
|
}
|
|
public function __toString()
|
|
{
|
|
return "uid:{$this->attributes['uid']}|auth_uid:{$this->attributes['auth_uid']}|{$this->attributes['title']} | {$this->attributes['type']} | {$this->attributes['status']}";
|
|
}
|
|
public function getParentField():string{
|
|
return "auth_uid";
|
|
}
|
|
} |