Base de ingrédient terminé
This commit is contained in:
19
src/Domain/Ingredients/UseIngredientsInterface.php
Normal file
19
src/Domain/Ingredients/UseIngredientsInterface.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Ingredients;
|
||||
|
||||
use App\Domain\Model;
|
||||
|
||||
interface UseIngredientsInterface {
|
||||
|
||||
/**
|
||||
* Permet de récupérer tous les ingrédients liés à ce Modèle.
|
||||
* @return array|null
|
||||
*/
|
||||
public function getAllLinkedIngredients( Model $entity ): ?array;
|
||||
|
||||
public function addAnIngredient( Ingredient $ingredient, Model $entity ): bool;
|
||||
|
||||
public function removeAnIngredient( Ingredient $ingredient, Model $entity ): bool;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user