Scalr\Service\Aws\CloudFront\V20150727\CloudFrontApi::_loadCacheBehaviorList PHP Method

_loadCacheBehaviorList() protected method

Parses CacheBehaviorList
protected _loadCacheBehaviorList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorList
$sxml SimpleXMLElement
return Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorList Returns CacheBehaviorList object
    protected function _loadCacheBehaviorList(\SimpleXMLElement $sxml)
    {
        $list = new CacheBehaviorList();
        $list->setCloudFront($this->cloudFront);
        if (!empty($sxml->Items->CacheBehavior)) {
            foreach ($sxml->Items->CacheBehavior as $v) {
                $item = $this->_loadCacheBehaviorData($v);
                $list->append($item);
                unset($item);
            }
        }
        return $list;
    }