add throw

This commit is contained in:
Yurii
2026-02-26 09:55:49 +02:00
parent 198b9c78fc
commit 1ba438fa9f
3 changed files with 12 additions and 0 deletions

View File

@@ -29,9 +29,13 @@
namespace Espo\Tools\EntityManager\Hook;
use Espo\Core\Exceptions\Error;
use Espo\Tools\EntityManager\Params;
interface CreateHook
{
/**
* @throws Error
*/
public function process(Params $params): void;
}

View File

@@ -29,9 +29,13 @@
namespace Espo\Tools\EntityManager\Hook;
use Espo\Core\Exceptions\Error;
use Espo\Tools\EntityManager\Params;
interface DeleteHook
{
/**
* @throws Error
*/
public function process(Params $params): void;
}

View File

@@ -29,9 +29,13 @@
namespace Espo\Tools\EntityManager\Hook;
use Espo\Core\Exceptions\Error;
use Espo\Tools\EntityManager\Params;
interface UpdateHook
{
/**
* @throws Error
*/
public function process(Params $params, Params $previousParams): void;
}