Skip to content

Commit 9d36db6

Browse files
simonsolutionssibprogrammer
authored andcommitted
Add additional fields for site
1 parent 87980e9 commit 9d36db6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Api/Struct/Site/GeneralInfo.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
class GeneralInfo extends \PleskX\Api\Struct
77
{
8+
/** @var string */
9+
public $crDate;
10+
811
/** @var string */
912
public $name;
1013

@@ -17,17 +20,37 @@ class GeneralInfo extends \PleskX\Api\Struct
1720
/** @var string */
1821
public $status;
1922

23+
/** @var int */
24+
public $realSize;
25+
26+
/** @var array */
27+
public $ipAddresses = [];
28+
2029
/** @var string */
2130
public $description;
2231

32+
/** @var string */
33+
public $webspaceGuid;
34+
35+
/** @var int */
36+
public $webspaceId;
37+
2338
public function __construct($apiResponse)
2439
{
2540
$this->_initScalarProperties($apiResponse, [
41+
'cr_date',
2642
'name',
2743
'ascii-name',
2844
'status',
45+
'real_size',
2946
'guid',
3047
'description',
48+
'webspace-guid',
49+
'webspace-id',
3150
]);
51+
52+
foreach ($apiResponse->dns_ip_address as $ip) {
53+
$this->ipAddresses[] = (string) $ip;
54+
}
3255
}
3356
}

0 commit comments

Comments
 (0)