Files
LesRecettesDePapis/src/Domain/Ingredients/UseIngredientsInterface.php

19 lines
461 B
PHP
Raw Normal View History

2026-04-02 18:10:47 +02:00
<?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;
}