ajoutUtilisateurs
This commit is contained in:
33
src/Domain/Ingredients/Ingredient.php
Normal file
33
src/Domain/Ingredients/Ingredient.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Ingredients;
|
||||
|
||||
use App\Domain\Model;
|
||||
|
||||
/**
|
||||
* Classe qui va gérer les ingrédients.
|
||||
*/
|
||||
class Ingredient extends Model {
|
||||
|
||||
/**
|
||||
* Le numéro de l'ingrédient.
|
||||
* @var int
|
||||
*/
|
||||
public int $num_ingredient;
|
||||
|
||||
/**
|
||||
* Le nom de l'ingrédient
|
||||
* @var string
|
||||
*/
|
||||
public string $nom_ingredient;
|
||||
|
||||
/**
|
||||
* Retourne le numéro de l'ingrédient.
|
||||
* @return int
|
||||
*/
|
||||
public function getID(): int
|
||||
{
|
||||
return $this->num_ingredient;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user