DelayInterval :: __construct: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\DelayInterval :: __construct()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/delayinterval.php:23

    /**
     * DelayInterval constructor.
     * @param array|null $params Initial parameters.
     */
    
public function __construct(array $params null)
    {
        if (
$params)
        {
            if (isset(
$params['type']))
            {
                
$this->setType($params['type']);
            }
            if (isset(
$params['value']))
            {
                
$this->setValue($params['value']);
            }
            if (isset(
$params['valueType']))
            {
                
$this->setValueType($params['valueType']);
            }

            
$this->setBasis(isset($params['basis']) ? $params['basis'] : Helper::CURRENT_DATETIME_BASIS);

            if (isset(
$params['workTime']))
            {
                
$this->setWorkTime($params['workTime']);
            }
            if (isset(
$params['localTime']))
            {
                
$this->setLocalTime($params['localTime']);
            }
        }
    }