2026-04-02 16:33:32 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Domain\Ingredients;
|
|
|
|
|
|
|
|
|
|
use App\Domain\Model;
|
|
|
|
|
|
2026-04-02 19:07:08 +02:00
|
|
|
/**
|
|
|
|
|
* Classe qui va gérer les ingrédients.
|
|
|
|
|
*/
|
2026-04-02 16:33:32 +02:00
|
|
|
class Ingredient extends Model {
|
|
|
|
|
|
2026-04-02 19:07:08 +02:00
|
|
|
/**
|
|
|
|
|
* Le numéro de l'ingrédient.
|
|
|
|
|
* @var int
|
|
|
|
|
*/
|
2026-04-02 16:33:32 +02:00
|
|
|
public int $num_ingredient;
|
2026-04-02 19:07:08 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Le nom de l'ingrédient
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
2026-04-02 16:33:32 +02:00
|
|
|
public string $nom_ingredient;
|
|
|
|
|
|
2026-04-03 12:55:05 +02:00
|
|
|
/**
|
|
|
|
|
* L'URL vers l'image de l'ingrédient.
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
public string $photo_ingredient;
|
|
|
|
|
|
2026-04-02 19:07:08 +02:00
|
|
|
/**
|
|
|
|
|
* Retourne le numéro de l'ingrédient.
|
|
|
|
|
* @return int
|
|
|
|
|
*/
|
2026-04-02 18:10:47 +02:00
|
|
|
public function getID(): int
|
|
|
|
|
{
|
|
|
|
|
return $this->num_ingredient;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-02 16:33:32 +02:00
|
|
|
}
|