wol-soft/php-workflow

View on GitHub
src/Stage/After.php

Summary

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

declare(strict_types=1);

namespace PHPWorkflow\Stage;

use PHPWorkflow\ExecutableWorkflow;
use PHPWorkflow\State\WorkflowState;
use PHPWorkflow\Stage\Next\AllowNextExecuteWorkflow;
use PHPWorkflow\Step\WorkflowStep;

class After extends MultiStepStage implements ExecutableWorkflow
{
    use AllowNextExecuteWorkflow;

    const STAGE = WorkflowState::STAGE_AFTER;

    public function after(WorkflowStep $step): self
    {
        return $this->addStep($step);
    }
}