Scalr\Service\Aws\Rds\V20130110\RdsApi::_loadDBSubnetGroupData PHP Method

_loadDBSubnetGroupData() protected method

Loads DBSubnetGroupData from simple xml object
protected _loadDBSubnetGroupData ( SimpleXMLElement $sxml ) : null | Scalr\Service\Aws\Rds\DataType\DBSubnetGroupData
$sxml SimpleXMLElement
return null | Scalr\Service\Aws\Rds\DataType\DBSubnetGroupData
    protected function _loadDBSubnetGroupData(\SimpleXMLElement $sxml)
    {
        $item = null;
        if ($this->exist($sxml)) {
            $item = new DBSubnetGroupData();
            $item->setRds($this->rds);
            $item->dBSubnetGroupDescription = $this->exist($sxml->DBSubnetGroupDescription) ? (string) $sxml->DBSubnetGroupDescription : null;
            $item->dBSubnetGroupName = $this->exist($sxml->DBSubnetGroupName) ? (string) $sxml->DBSubnetGroupName : null;
            $item->subnetGroupStatus = $this->exist($sxml->SubnetGroupStatus) ? (string) $sxml->SubnetGroupStatus : null;
            $item->vpcId = $this->exist($sxml->VpcId) ? (string) $sxml->VpcId : null;
            $item->subnets = $this->exist($sxml->Subnets) ? $this->_loadSubnetsList($sxml->Subnets) : null;
        }
        return $item;
    }