Lundi
This commit is contained in:
29
src/Domain/Ingredients/IngredientRepository.php
Normal file
29
src/Domain/Ingredients/IngredientRepository.php
Normal 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 {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user