COM-40 :: Add ZoneLockdown and UA Rules

This commit is contained in:
Junade Ali
2017-09-19 16:04:35 +01:00
parent 7d0c0c86dc
commit 1e8c8d6019
10 changed files with 840 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
<?php
/**
* Created by PhpStorm.
* User: junade
* Date: 19/09/2017
* Time: 15:22
*/
namespace Cloudflare\API\Configurations;
class UARules implements Configurations
{
private $configs = array();
public function addUA(string $value)
{
$object = new \stdClass();
$object->target = "ua";
$object->value = $value;
array_push($this->configs, $object);
}
public function getArray(): array
{
return $this->configs;
}
}