File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 55
66class GeneralInfo extends \PleskX \Api \Struct
77{
8+ /** @var string */
9+ public $ creationDate ;
10+
811 /** @var string */
912 public $ name ;
1013
1114 /** @var string */
12- public $ guid ;
15+ public $ asciiName ;
16+
17+ /** @var string */
18+ public $ status ;
1319
1420 /** @var int */
1521 public $ realSize ;
1622
23+ /** @var int */
24+ public $ ownerId ;
25+
26+ /** @var array */
27+ public $ ipAddresses = [];
28+
29+ /** @var string */
30+ public $ guid ;
31+
32+ /** @var string */
33+ public $ vendorGuid ;
34+
35+ /** @var string */
36+ public $ description ;
37+
38+ /** @var string */
39+ public $ adminDescription ;
40+
1741 public function __construct ($ apiResponse )
1842 {
1943 $ this ->_initScalarProperties ($ apiResponse , [
44+ ['cr_date ' => 'creationDate ' ],
2045 'name ' ,
21- 'guid ' ,
46+ 'ascii-name ' ,
47+ 'status ' ,
2248 'real_size ' ,
49+ 'owner-id ' ,
50+ 'guid ' ,
51+ 'vendor-guid ' ,
52+ 'description ' ,
53+ 'admin-description ' ,
2354 ]);
55+
56+ foreach ($ apiResponse ->dns_ip_address as $ ip ) {
57+ $ this ->ipAddresses [] = (string ) $ ip ;
58+ }
2459 }
2560}
Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ public function testGet()
179179
180180 $ this ->assertNotEmpty ($ webspaceInfo ->name );
181181 $ this ->assertEquals (0 , $ webspaceInfo ->realSize );
182+ $ this ->assertEquals ($ webspaceInfo ->name , $ webspaceInfo ->asciiName );
183+ $ this ->assertIsArray ($ webspaceInfo ->ipAddresses );
184+ $ this ->assertEquals (36 , strlen ($ webspaceInfo ->guid ));
182185
183186 static ::$ _client ->webspace ()->delete ('id ' , $ webspace ->id );
184187 }
You can’t perform that action at this time.
0 commit comments