Scalr\Service\Aws\Rds\V20141031\RdsApi::_loadOptionGroupData PHP Method

_loadOptionGroupData() protected method

Loads OptionGroupData from simple xml object
protected _loadOptionGroupData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\Rds\DataType\OptionGroupData
$sxml SimpleXMLElement
return Scalr\Service\Aws\Rds\DataType\OptionGroupData
    protected function _loadOptionGroupData(\SimpleXMLElement $sxml)
    {
        $item = new OptionGroupData();
        $item->setRds($this->rds);
        $item->allowsVpcAndNonVpcInstanceMemberships = $this->exist($sxml->AllowsVpcAndNonVpcInstanceMemberships) ? (string) $sxml->AllowsVpcAndNonVpcInstanceMemberships == 'true' : null;
        $item->engineName = $this->exist($sxml->EngineName) ? (string) $sxml->EngineName : null;
        $item->majorEngineVersion = $this->exist($sxml->MajorEngineVersion) ? (string) $sxml->MajorEngineVersion : null;
        $item->optionGroupDescription = $this->exist($sxml->OptionGroupDescription) ? (string) $sxml->OptionGroupDescription : null;
        $item->optionGroupName = $this->exist($sxml->OptionGroupName) ? (string) $sxml->OptionGroupName : null;
        $item->vpcId = $this->exist($sxml->VpcId) ? (string) $sxml->VpcId : null;
        $item->options = $this->_loadOptionList($sxml->Options);
        return $item;
    }
RdsApi