From 37a4d956ef4717bd16ab38b95c41a1a08ecda687 Mon Sep 17 00:00:00 2001 From: sbyrd Date: Thu, 3 Dec 2020 17:45:09 -0500 Subject: [PATCH] object are good --- imageConfigConfig.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/imageConfigConfig.php b/imageConfigConfig.php index 769f0fb..4ecffba 100644 --- a/imageConfigConfig.php +++ b/imageConfigConfig.php @@ -11,6 +11,19 @@ class imageConfigConfig extends objectStructs /** @var \stdClass */ public $ExposedPorts; + public function __construct($Result = null) + { + parent::__construct($Result); + if (isset($Result->ExposedPorts) ) + { + $this->ExposedPorts = new \stdClass(); + foreach($Result->ExposedPorts as $port => $Value) + { + $this->ExposedPorts->$port = $Value; + } + } + } + } /* *