Since: 4.5.2
Author: Vlad Dobrovolskiy (v.dobrovolskiy@scalr.com)
Inheritance: extends Scalr\Service\Aws\Route53\AbstractRoute53DataType
Example #1
0
 /**
  * Loads ZoneChangeInfoData from simple xml object
  *
  * @param   \SimpleXMLElement $sxml
  * @return  ZoneChangeInfoData Returns ZoneChangeInfoData
  */
 protected function _loadHostedZoneChangeInfoData(\SimpleXMLElement $v)
 {
     $item = null;
     if ($this->exist($v)) {
         $id = (string) $v->Id;
         $item = new ZoneChangeInfoData();
         $item->setRoute53($this->route53);
         $item->setId($id)->setStatus($this->exist($v->Status) ? (string) $v->Status : null)->setSubmittedAt($this->exist($v->SubmittedAt) ? new DateTime((string) $v->SubmittedAt, new DateTimeZone('UTC')) : null);
     }
     return $item;
 }