src/Entity/Equipement.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EquipementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassEquipementRepository::class)]
  6. #[ORM\Table(name'equipements')]
  7. class Equipement
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?bool $wc null;
  15.     #[ORM\Column]
  16.     private ?bool $video null;
  17.     #[ORM\Column]
  18.     private ?bool $climatisation null;
  19.     #[ORM\Column]
  20.     private ?bool $ceintures null;
  21.     #[ORM\Column]
  22.     private ?bool $gps null;
  23.     #[ORM\Column]
  24.     private ?bool $couchettes null;
  25.     public function __toString(): string
  26.     {
  27.         $sWc $this->wc?'wc,':'';
  28.         $sVideo $this->video?'video,':'';
  29.         $sClimatisation $this->climatisation?'clim,':'';
  30.         $sCeintures $this->ceintures?'ceinture,':'';
  31.         $sGps $this->gps?'gps,':'';
  32.         $sCouchettes $this->couchettes?'couchettes,':'';
  33.         return $sWc.$sVideo.$sClimatisation.$sCeintures.$sGps.$sCouchettes;
  34.     }
  35.     //-------------- GETTER SETTER -----------//
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function isWc(): ?bool
  41.     {
  42.         return $this->wc;
  43.     }
  44.     public function setWc(bool $wc): void
  45.     {
  46.         $this->wc $wc;
  47.     }
  48.     public function isVideo(): ?bool
  49.     {
  50.         return $this->video;
  51.     }
  52.     public function setVideo(bool $video): void
  53.     {
  54.         $this->video $video;
  55.     }
  56.     public function isClimatisation(): ?bool
  57.     {
  58.         return $this->climatisation;
  59.     }
  60.     public function setClimatisation(bool $climatisation): void
  61.     {
  62.         $this->climatisation $climatisation;
  63.     }
  64.     public function isCeintures(): ?bool
  65.     {
  66.         return $this->ceintures;
  67.     }
  68.     public function setCeintures(bool $ceintures): void
  69.     {
  70.         $this->ceintures $ceintures;
  71.     }
  72.     public function isGps(): ?bool
  73.     {
  74.         return $this->gps;
  75.     }
  76.     public function setGps(bool $gps): void
  77.     {
  78.         $this->gps $gps;
  79.     }
  80.     public function isCouchettes(): ?bool
  81.     {
  82.         return $this->couchettes;
  83.     }
  84.     public function setCouchettes(bool $couchettes): void
  85.     {
  86.         $this->couchettes $couchettes;
  87.     }
  88. }