2020-12-04 01:31:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class Produits
|
|
|
|
{
|
|
|
|
private int $id;
|
|
|
|
private bool $estCremeSolaire;
|
|
|
|
private bool $estCremeParfum;
|
|
|
|
private bool $estCremeHydratante;
|
|
|
|
private bool $estMaquillage;
|
|
|
|
private bool $estEssence;
|
|
|
|
private bool $estCigarette;
|
|
|
|
private bool $estEngrais;
|
|
|
|
private bool $estPeinture;
|
|
|
|
private string $autreProduit;
|
2020-12-04 02:47:09 +01:00
|
|
|
|
2020-12-04 03:19:36 +01:00
|
|
|
function __construct(int $id,bool $estCremeSolaire,bool $estCremeParfum,bool $estCremeHydratante,bool $estMaquillage,
|
2020-12-04 02:47:09 +01:00
|
|
|
bool $estEssence,bool $estCigarette,bool $estEngrais,bool $estPeinture,string $autreProduit){
|
|
|
|
$this->id = $id;
|
|
|
|
$this->estCremeSolaire = $estCremeSolaire;
|
|
|
|
$this->estCremeParfum = $estCremeParfum;
|
|
|
|
$this->estCremeHydratante = $estCremeHydratante;
|
|
|
|
$this->estMaquillage = $estMaquillage;
|
|
|
|
$this->estEssence = $estEssence;
|
|
|
|
$this->estCigarette = $estCigarette;
|
|
|
|
$this->estEngrais = $estEngrais;
|
|
|
|
$this->estPeinture = $estPeinture;
|
|
|
|
$this->autreProduit = $autreProduit;
|
|
|
|
}
|
2020-12-04 01:31:37 +01:00
|
|
|
}
|