mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
add throw
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user