Finish tag et commencer à ajouter les template.s
This commit is contained in:
@@ -4,6 +4,9 @@ namespace App\Domain\Ingredients;
|
||||
|
||||
use App\Domain\Model;
|
||||
|
||||
/**
|
||||
* Interface utilisée par tous les repository qui sont en lien avec les ingrédients.
|
||||
*/
|
||||
interface UseIngredientsInterface {
|
||||
|
||||
/**
|
||||
@@ -12,8 +15,24 @@ interface UseIngredientsInterface {
|
||||
*/
|
||||
public function getAllLinkedIngredients( Model $entity ): ?array;
|
||||
|
||||
/**
|
||||
* Permet d'ajouter un ingrédient en lien avec notre autre entité.
|
||||
*
|
||||
* @param Ingredient $ingredient
|
||||
* @param Model $entity
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function addAnIngredient( Ingredient $ingredient, Model $entity ): bool;
|
||||
|
||||
/**
|
||||
* Permet de retirer un lien entre un ingrédient et une autre entité.
|
||||
*
|
||||
* @param Ingredient $ingredient
|
||||
* @param Model $entity
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function removeAnIngredient( Ingredient $ingredient, Model $entity ): bool;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user