ldc-cocotte/app/Contracts/ActionExecutor.php
Jérémy Munsch 98e580d327
refactor(tags): implement CRUD actions for tags
- Added CreateTag, UpdateTag, and DeleteTag actions.
- Introduced CreateTagInput and UpdateTagInput for input validation.
- Implemented ActionExecutor for executing actions with logging.
- Added tests for all new actions and input validation.
2026-10-27 09:58:30 +01:00

18 lines
378 B
PHP

<?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;
}