@@ 27-32 (lines=6) @@ | ||
24 | public function __construct($aData = []) |
|
25 | { |
|
26 | MarathonEntityUtils::setAllPossibleProperties((array)$aData, $this); |
|
27 | if(isset($aData['labels'])) |
|
28 | { |
|
29 | $this->labels = (object)$aData['labels']; |
|
30 | } else { |
|
31 | $this->labels = (object)[]; |
|
32 | } |
|
33 | ||
34 | } |
|
35 |
@@ 133-138 (lines=6) @@ | ||
130 | $this->ipAddress = new IpAddress((array) $aData['ipAddress']); |
|
131 | } |
|
132 | ||
133 | if (isset($aData['env'])) |
|
134 | { |
|
135 | $this->env = (object) $aData['env']; |
|
136 | } else { |
|
137 | $this->env = (object) []; |
|
138 | } |
|
139 | ||
140 | if (isset($aData['labels'])) |
|
141 | { |
|
@@ 140-145 (lines=6) @@ | ||
137 | $this->env = (object) []; |
|
138 | } |
|
139 | ||
140 | if (isset($aData['labels'])) |
|
141 | { |
|
142 | $this->labels = (object) $aData['labels']; |
|
143 | } else { |
|
144 | $this->labels = (object) []; |
|
145 | } |
|
146 | MarathonEntityUtils::setPropertyIfExist($aData, $this, 'constraints'); |
|
147 | MarathonEntityUtils::setPropertyIfExist($aData, $this, 'args'); |
|
148 | MarathonEntityUtils::setPropertyIfExist($aData, $this, 'uris'); |