<?php declare(strict_types = 1);

namespace idoit\Module\SyneticsFlows\Automation\Action\ExecutionFactory;

use idoit\Module\SyneticsFlows\Automation\Action\ActionType\ActionType;
use idoit\Module\SyneticsFlows\Automation\Automation;
use idoit\Module\SyneticsFlows\Automation\Action\ExecutionInfo\ExecutionInfo;
use idoit\Module\SyneticsFlows\Automation\Trigger\Invocation\Invocation;

interface ExecutionFactory
{
    public function createExecution(Invocation $invocation, Automation $automation, ActionType $actionType): ?ExecutionInfo;

    public function supports(ActionType $actionType): bool;
}