26 lines
729 B
PHP
26 lines
729 B
PHP
<?php
|
|
|
|
namespace App\Entities\Cloudflare;
|
|
use App\Entities\Cloudflare\CloudflareEntity;
|
|
class FirewallEntity 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['description'];
|
|
}
|
|
public function __toString()
|
|
{
|
|
return "uid:{$this->attributes['uid']}|zone_uid:{$this->attributes['zone_uid']}|host:{$this->attributes['description']}|content:{$this->attributes['action']}";
|
|
}
|
|
public function getParentField():string{
|
|
return "zone_uid";
|
|
}
|
|
|
|
}
|