CBitrixCloudCDNQuota :: fromOption: Bitrix method

      
<?php 
//  CBitrixCloudCDNQuota :: fromOption()
//  /dist/bitrix/modules/bitrixcloud/classes/general/cdn_quota.php:123

    
public static function fromOption(CBitrixCloudOption $option)
    {
        
$quota = new CBitrixCloudCDNQuota();
        
$values $option->getArrayValue();
        
$quota->setExpires(intval($values["expires"]));
        
$quota->setAllowedSize(doubleval($values["allow"]));
        
$quota->setTrafficSize(doubleval($values["traffic"]));
        return 
$quota;
    }