19 lines
461 B
PHP
19 lines
461 B
PHP
|
|
<?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;
|
||
|
|
|
||
|
|
}
|