CBitrixCloudMonitoringDomainResult :: saveToOptions: Bitrix method

      
<?php 
//  CBitrixCloudMonitoringDomainResult :: saveToOptions()
//  /dist/bitrix/modules/bitrixcloud/classes/general/monitoring_result.php:190

    
public function saveToOptions(CBitrixCloudOption $option)
    {
        
$tests = array();
        foreach (
$this->tests as $testName => $testResult)
        {
            
$tests[$testName] = serialize(array(
                
"status" => $testResult->getStatus(),
                
"time" => $testResult->getTime(),
                
"uptime" => $testResult->getUptime(),
                
"result" => $testResult->getResult(),
            ));
        }
        
$option->setArrayValue($tests);
    }