Base de ingrédient terminé

This commit is contained in:
2026-04-02 18:10:47 +02:00
parent e79cc73e6d
commit 8a173ed2c7
10 changed files with 246 additions and 13 deletions

View 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;
}