16 lines
272 B
PHP
16 lines
272 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts;
|
|
|
|
/**
|
|
* @template TInput of \App\Contracts\ActionInput
|
|
*/
|
|
interface HandlesFailure
|
|
{
|
|
/**
|
|
* @param TInput $input
|
|
*/
|
|
public function onFailure(ActionInput $input, \Throwable $exception): void;
|
|
}
|