public function init($arr = null) { if ($arr != null) { foreach ($arr as $arry) { if ($arry != null && isset($arry['text']) && $arry['name'] == 'subscribername') { $this->SubscriberName = $arry["text"]; } if (is_array($arry["children"]) && $arry["children"] != null) { if ($arry["name"] == 'subscribershippingaddress') { $this->SubscriberShippingAddress = new AddressType(); $this->SubscriberShippingAddress->init($arry["children"]); } } if ($arry != null && isset($arry['text']) && $arry['name'] == 'billingstartdate') { $this->BillingStartDate = $arry["text"]; } if ($arry != null && isset($arry['text']) && $arry['name'] == 'profilereference') { $this->ProfileReference = $arry["text"]; } } } }