39 lines
634 B
PHP
39 lines
634 B
PHP
<?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;
|
|
|
|
/**
|
|
* L'URL vers l'image de l'ingrédient.
|
|
* @var string
|
|
*/
|
|
public string $photo_ingredient;
|
|
|
|
/**
|
|
* Retourne le numéro de l'ingrédient.
|
|
* @return int
|
|
*/
|
|
public function getID(): int
|
|
{
|
|
return $this->num_ingredient;
|
|
}
|
|
|
|
} |