Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Zone implements JsonSerializable |
||
8 | { |
||
9 | /** @var array */ |
||
10 | private $parameters; |
||
11 | |||
12 | public function __construct(array $parameters = []) |
||
13 | { |
||
14 | $this->parameters = $parameters; |
||
15 | } |
||
16 | |||
17 | public function replace(array $parameters) |
||
20 | } |
||
21 | |||
22 | public function jsonSerialize() |
||
23 | { |
||
24 | if (empty($this->parameters)) { |
||
25 | return ['purge_everything' => true]; |
||
26 | } |
||
27 | |||
28 | return $this->parameters; |
||
29 | } |
||
30 | |||
31 | public function get($key, $default = null) |
||
38 | } |
||
39 | } |
||
40 |