Scalr\Service\Aws\CloudFront\V20150727\CloudFrontApi::_loadKeyPairList PHP Метод

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

Parses KeyPairList
protected _loadKeyPairList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\KeyPairList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\KeyPairList Returns KeyPairList object
    protected function _loadKeyPairList(\SimpleXMLElement $sxml)
    {
        $list = new KeyPairList();
        $list->setCloudFront($this->cloudFront);
        if (!empty($sxml->Items->KeyPairId)) {
            foreach ($sxml->Items->KeyPairId as $v) {
                $item = new KeyPairData();
                $item->keyPairId = (string) $v->KeyPairId;
                $list->append($item);
                unset($item);
            }
        }
        return $list;
    }