Robot::__construct: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\Robot :: __construct()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/robot.php:15

    /** @var  ConditionGroup $condition */
    
protected $condition;
    protected 
$executeAfterPrevious false;

    public function 
__construct(array $bizprocActivity)
    {
        if (isset(
$bizprocActivity['Delay']))
        {
            
$this->setDelayInterval(new DelayInterval($bizprocActivity['Delay']));
            unset(
$bizprocActivity['Delay']);
        }
        if (isset(
$bizprocActivity['DelayName']))
        {
            
$this->setDelayName($bizprocActivity['DelayName']);
            unset(
$bizprocActivity['DelayName']);
        }
        if (isset(
$bizprocActivity['Condition']))
        {
            
$this->setCondition(new ConditionGroup($bizprocActivity['Condition']));
            unset(
$bizprocActivity['Condition']);
        }

        if (isset(
$bizprocActivity['ExecuteAfterPrevious']) && (int)$bizprocActivity['ExecuteAfterPrevious'] === 1)
        {
            
$this->setExecuteAfterPrevious();
        }
        unset(
$bizprocActivity['ExecuteAfterPrevious']);

        
$this->bizprocActivity $bizprocActivity;
    }