- 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
278 B
PHP
18 lines
278 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts;
|
|
|
|
/**
|
|
* @template TInput of \App\Contracts\ActionInput
|
|
* @template TResult
|
|
*/
|
|
interface Action
|
|
{
|
|
/**
|
|
* @param TInput $input
|
|
* @return TResult
|
|
*/
|
|
public function __invoke(ActionInput $input);
|
|
}
|