ldc-cocotte/app/Contracts/ActionExecutor.php

19 lines
378 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace App\Contracts;
interface ActionExecutor
{
/**
* @template TInput of \App\Contracts\ActionInput
* @template TResult
*
* @param \App\Contracts\Action<TInput, TResult> $action
* @param TInput $input
* @return TResult
*/
public function execute(Action $action, ActionInput $input): mixed;
}