import axiom without dependency on symfony console
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
This commit is contained in:
27
axiom_src/Recipients/OnCreateRecipientInterface.php
Normal file
27
axiom_src/Recipients/OnCreateRecipientInterface.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Enzyme\Axiom\Recipients;
|
||||
|
||||
use Enzyme\Axiom\Models\ModelInterface;
|
||||
use Enzyme\Axiom\Reports\ReportInterface;
|
||||
|
||||
interface OnCreateRecipientInterface
|
||||
{
|
||||
/**
|
||||
* Called when the creation of a model was a success.
|
||||
*
|
||||
* @param ModelInterface $model The newly created model.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function onCreateSuccess(ModelInterface $model);
|
||||
|
||||
/**
|
||||
* Called when the creation of a model was a failure.
|
||||
*
|
||||
* @param ReportInterface $report The failure report.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function onCreateFailure(ReportInterface $report);
|
||||
}
|
||||
27
axiom_src/Recipients/OnDeleteRecipientInterface.php
Normal file
27
axiom_src/Recipients/OnDeleteRecipientInterface.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Enzyme\Axiom\Recipients;
|
||||
|
||||
use Enzyme\Axiom\Models\ModelInterface;
|
||||
use Enzyme\Axiom\Reports\ReportInterface;
|
||||
|
||||
interface OnDeleteRecipientInterface
|
||||
{
|
||||
/**
|
||||
* Called when the deletion of a model was a success.
|
||||
*
|
||||
* @param ModelInterface $model A shell copy of the deleted model.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function onDeleteSuccess(ModelInterface $model);
|
||||
|
||||
/**
|
||||
* Called when the deletion of a model was a failure.
|
||||
*
|
||||
* @param ReportInterface $report The failure report.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function onDeleteFailure(ReportInterface $report);
|
||||
}
|
||||
27
axiom_src/Recipients/OnUpdateRecipientInterface.php
Normal file
27
axiom_src/Recipients/OnUpdateRecipientInterface.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Enzyme\Axiom\Recipients;
|
||||
|
||||
use Enzyme\Axiom\Models\ModelInterface;
|
||||
use Enzyme\Axiom\Reports\ReportInterface;
|
||||
|
||||
interface OnUpdateRecipientInterface
|
||||
{
|
||||
/**
|
||||
* Called when the modification of a model was a success.
|
||||
*
|
||||
* @param ModelInterface $model The updated model.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function onUpdateSuccess(ModelInterface $model);
|
||||
|
||||
/**
|
||||
* Called when the modification of a model was a failure.
|
||||
*
|
||||
* @param ReportInterface $report The failure report.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function onUpdateFailure(ReportInterface $report);
|
||||
}
|
||||
Reference in New Issue
Block a user