ConditionGroup :: __construct: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\ConditionGroup :: __construct()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/conditiongroup.php:21

    
public function __construct(array $params null)
    {
        
$this->setType(static::TYPE_FIELD);
        if (
$params)
        {
            if (isset(
$params['type']))
            {
                
$this->setType($params['type']);
            }
            if (isset(
$params['items']) && is_array($params['items']))
            {
                foreach (
$params['items'] as list($item$joiner))
                {
                    if (!empty(
$item['field']))
                    {
                        
$condition = new Condition($item);
                        
$this->addItem($condition$joiner);
                    }
                }
            }
        }
    }