-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProtection.php
More file actions
37 lines (31 loc) · 777 Bytes
/
Copy pathProtection.php
File metadata and controls
37 lines (31 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace PHPBitLaunch\Types;
use PHPBitLaunch\Types\AbstractType;
use PHPBitLaunch\Types\Proxy;
class Protection extends AbstractType
{
/**
* @var bool
*/
public $enabled;
/**
* @var Proxy
*/
public $proxy;
public function __construct($data = null)
{
if ($data) {
foreach ($data as $key => $value) {
// Check if property needs decoding as object
switch ($key) {
case 'proxy':
$this->__set($key, new Proxy($value));
break;
default:
$this->__set($key, $value);
break;
}
}
}
}
}