wol-soft/php-workflow

View on GitHub
src/Step/LoopControl.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

declare(strict_types=1);

namespace PHPWorkflow\Step;

use PHPWorkflow\State\ExecutionLog\Describable;
use PHPWorkflow\State\WorkflowContainer;
use PHPWorkflow\WorkflowControl;

interface LoopControl extends Describable
{
    /**
     * Return true if the next iteration of the loop shall be executed. Return false to break the loop
     */
    public function executeNextIteration(int $iteration, WorkflowControl $control, WorkflowContainer $container): bool;
}