Skip to content

Commit 92a2b6e

Browse files
simonsolutionssibprogrammer
authored andcommitted
Make additional parameters available as property of class
1 parent a5e0adc commit 92a2b6e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Api/Struct/Server/Statistics/Version.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,27 @@ class Version extends \PleskX\Api\Struct
1111
/** @var string */
1212
public $version;
1313

14+
/** @var string */
15+
public $build;
16+
17+
/** @var string */
18+
public $osName;
19+
20+
/** @var string */
21+
public $osVersion;
22+
23+
/** @var string */
24+
public $osRelease;
25+
1426
public function __construct($apiResponse)
1527
{
1628
$this->_initScalarProperties($apiResponse, [
1729
['plesk_name' => 'internalName'],
1830
['plesk_version' => 'version'],
31+
['plesk_build' => 'build'],
32+
['plesk_os' => 'osName'],
33+
['plesk_os_version' => 'osVersion'],
34+
['os_release' => 'osRelease'],
1935
]);
2036
}
2137
}

0 commit comments

Comments
 (0)