- 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.
18 lines
378 B
PHP
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;
|
|
}
|