Scalr\Service\Aws\Ec2\V20150415\Ec2Api::_loadIamInstanceProfileResponseData PHP Метод

_loadIamInstanceProfileResponseData() защищенный Метод

Loads IamInstanceProfileResponseData from simple xml object
protected _loadIamInstanceProfileResponseData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\Ec2\DataType\IamInstanceProfileResponseData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\Ec2\DataType\IamInstanceProfileResponseData Returns IamInstanceProfileResponseData
    protected function _loadIamInstanceProfileResponseData(\SimpleXMLElement $sxml)
    {
        $item = null;
        if ($this->exist($sxml)) {
            $item = new IamInstanceProfileResponseData();
            $item->setEc2($this->ec2);
            $item->arn = $this->exist($sxml->arn) ? (string) $sxml->arn : null;
            $item->iamInstanceProfileId = $this->exist($sxml->iamInstanceProfileId) ? (string) $sxml->iamInstanceProfileId : null;
        }
        return $item;
    }
Ec2Api