Finish tag et commencer à ajouter les template.s
This commit is contained in:
@@ -4,15 +4,30 @@ 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