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:
28
axiom_src/Factories/FactoryInterface.php
Normal file
28
axiom_src/Factories/FactoryInterface.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Enzyme\Axiom\Factories;
|
||||
|
||||
use Enzyme\Axiom\Bags\BagInterface;
|
||||
use Enzyme\Axiom\Models\ModelInterface;
|
||||
|
||||
interface FactoryInterface
|
||||
{
|
||||
/**
|
||||
* Make a new model given the data provided.
|
||||
*
|
||||
* @param BagInterface $data
|
||||
*
|
||||
* @return \Enzyme\Axiom\Models\ModelInterface
|
||||
*/
|
||||
public function make(BagInterface $data);
|
||||
|
||||
/**
|
||||
* Update the model provided with the given data.
|
||||
*
|
||||
* @param ModelInterface $model
|
||||
* @param BagInterface $data
|
||||
*
|
||||
* @return \Enzyme\Axiom\Models\ModelInterface
|
||||
*/
|
||||
public function update(ModelInterface $model, BagInterface $data);
|
||||
}
|
||||
Reference in New Issue
Block a user