protected _loadKeyPairList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\KeyPairList | ||
$sxml | SimpleXMLElement | |
return | 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;
}