| @@ 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 | } |
|
| @@ 135-140 (lines=6) @@ | ||
| 132 | $this->ipAddress = new IpAddress((array)$aData['ipAddress']); |
|
| 133 | } |
|
| 134 | ||
| 135 | if (isset($aData['env'])) |
|
| 136 | { |
|
| 137 | $this->env = (object) $aData['env']; |
|
| 138 | } else { |
|
| 139 | $this->env = (object)[]; |
|
| 140 | } |
|
| 141 | ||
| 142 | if (isset($aData['labels'])) |
|
| 143 | { |
|
| @@ 142-147 (lines=6) @@ | ||
| 139 | $this->env = (object)[]; |
|
| 140 | } |
|
| 141 | ||
| 142 | if (isset($aData['labels'])) |
|
| 143 | { |
|
| 144 | $this->labels = (object) $aData['labels']; |
|
| 145 | } else { |
|
| 146 | $this->labels = (object)[]; |
|
| 147 | } |
|
| 148 | MarathonEntityUtils::setPropertyIfExist($aData, $this, 'constraints'); |
|
| 149 | MarathonEntityUtils::setPropertyIfExist($aData, $this, 'args'); |
|
| 150 | MarathonEntityUtils::setPropertyIfExist($aData, $this, 'uris'); |
|