Exception/MultiBranchProcessException.php
public static function create($processCode, array $branches)
    {
        $branchesStr = [];
        foreach ($branches as $branch) {
            $branchesStr[] = '['.implode(', ', $branch).']';
        }

        $errorStr = '['.implode(', ', $branchesStr).']';
        $errorStr = "Process {$processCode} contains multiple independent branches : {$errorStr}, ";
        $errorStr .= 'which is not allowed. Please create a process for each branch';

        return new self($errorStr);
    }
public static function create($processCode, array $branches)
    {
        $branchesStr = [];
        foreach ($branches as $branch) {
            $branchesStr[] = '['.implode(', ', $branch).']';
        }

        $errorStr = '['.implode(', ', $branchesStr).']';
        $errorStr = "Process {$processCode} contains multiple independent branches : {$errorStr}, ";
        $errorStr .= 'which is not allowed. Please create a process for each branch';

        return new self($errorStr);
    }
@param string $processCode
@param array  $branches

@return MultiBranchProcessException