<?php
namespace App\Entity;
use App\Repository\EquipementRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EquipementRepository::class)]
#[ORM\Table(name: 'equipements')]
class Equipement
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?bool $wc = null;
#[ORM\Column]
private ?bool $video = null;
#[ORM\Column]
private ?bool $climatisation = null;
#[ORM\Column]
private ?bool $ceintures = null;
#[ORM\Column]
private ?bool $gps = null;
#[ORM\Column]
private ?bool $couchettes = null;
public function __toString(): string
{
$sWc = $this->wc?'wc,':'';
$sVideo = $this->video?'video,':'';
$sClimatisation = $this->climatisation?'clim,':'';
$sCeintures = $this->ceintures?'ceinture,':'';
$sGps = $this->gps?'gps,':'';
$sCouchettes = $this->couchettes?'couchettes,':'';
return $sWc.$sVideo.$sClimatisation.$sCeintures.$sGps.$sCouchettes;
}
//-------------- GETTER SETTER -----------//
public function getId(): ?int
{
return $this->id;
}
public function isWc(): ?bool
{
return $this->wc;
}
public function setWc(bool $wc): void
{
$this->wc = $wc;
}
public function isVideo(): ?bool
{
return $this->video;
}
public function setVideo(bool $video): void
{
$this->video = $video;
}
public function isClimatisation(): ?bool
{
return $this->climatisation;
}
public function setClimatisation(bool $climatisation): void
{
$this->climatisation = $climatisation;
}
public function isCeintures(): ?bool
{
return $this->ceintures;
}
public function setCeintures(bool $ceintures): void
{
$this->ceintures = $ceintures;
}
public function isGps(): ?bool
{
return $this->gps;
}
public function setGps(bool $gps): void
{
$this->gps = $gps;
}
public function isCouchettes(): ?bool
{
return $this->couchettes;
}
public function setCouchettes(bool $couchettes): void
{
$this->couchettes = $couchettes;
}
}