Scalr\Service\Aws\Ec2\V20140615\Ec2Api::_loadNetworkInterfaceAssociationData PHP Method

_loadNetworkInterfaceAssociationData() protected method

Loads NetworkInterfaceAssociationData from simple xml object
protected _loadNetworkInterfaceAssociationData ( SimpleXMLElement $v ) : Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceAssociationData
$v SimpleXMLElement
return Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceAssociationData Returns NetworkInterfaceAssociationData
    protected function _loadNetworkInterfaceAssociationData(\SimpleXMLElement $v)
    {
        $item = null;
        if ($this->exist($v)) {
            $item = new NetworkInterfaceAssociationData();
            $item->setEc2($this->ec2);
            $item->allocationId = $this->exist($v->allocationId) ? (string) $v->allocationId : null;
            $item->associationId = $this->exist($v->associationId) ? (string) $v->associationId : null;
            $item->ipOwnerId = $this->exist($v->ipOwnerId) ? (string) $v->ipOwnerId : null;
            $item->publicDnsName = $this->exist($v->publicDnsName) ? (string) $v->publicDnsName : null;
            $item->publicIp = (string) $v->publicIp;
        }
        return $item;
    }
Ec2Api