Files
abcParser/axiom_src/Recipients/OnCreateRecipientInterface.php
richard fb619dccbf
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
import axiom without dependency on symfony console
2020-06-21 07:36:31 -04:00

28 lines
627 B
PHP

<?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);
}