This commit is contained in:
2026-04-02 16:33:32 +02:00
parent 72108d4d03
commit e79cc73e6d
17 changed files with 720 additions and 23 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Domain\Ingredients;
use App\Domain\Repository;
use App\Domain\Model;
class IngredientRepository extends Repository {
public static function getEntity(): string
{
return Ingredient::class;
}
public static function getStructure(): array
{
return [
'table' => 'Ingredient',
'columns' => [
'num_ingredient', 'nom_ingredient'
]
];
}
public function add( Model $ingredient ): bool {
}
}