src/Entity/Prestation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrestationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPrestationRepository::class)]
  6. #[ORM\Table(name'prestations')]
  7. class Prestation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(nullabletrue)]
  14.     private ?bool $peages null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?bool $parkingsCheckpoint null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?bool $hebergementConducteur null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?bool $pensionConducteur null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?bool $relais null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $tunnelItalie null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $ferryShuttle null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?bool $taxeAllemande null;
  29.      public function __toString(): string
  30.     {
  31.         $speages $this->peages?'peages,':'';
  32.         $sparkingsCheckpoint $this->parkingsCheckpoint?'parkingsCheckpoint,':'';
  33.         $shebergementConducteur $this->hebergementConducteur?'hebergementConducteur,':'';
  34.         $spensionConducteur $this->pensionConducteur?'pensionConducteur,':'';
  35.         $srelais $this->relais?'relais,':'';
  36.         $stunnelItalie $this->tunnelItalie?'tunnelItalie,':'';
  37.         $sferryShuttle $this->ferryShuttle?'ferryShuttle,':'';
  38.         $staxeAllemande $this->taxeAllemande?'taxeAllemande,':'';
  39.         return $speages.$sparkingsCheckpoint.$shebergementConducteur.$spensionConducteur.$srelais.$stunnelItalie.$sferryShuttle.$staxeAllemande;
  40.     }
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function isPeages(): ?bool
  46.     {
  47.         return $this->peages;
  48.     }
  49.     public function setPeages(?bool $peages): void
  50.     {
  51.         $this->peages $peages;
  52.     }
  53.     public function isParkingsCheckpoint(): ?bool
  54.     {
  55.         return $this->parkingsCheckpoint;
  56.     }
  57.     public function setParkingsCheckpoint(?bool $parkingsCheckpoint): void
  58.     {
  59.         $this->parkingsCheckpoint $parkingsCheckpoint;
  60.     }
  61.     public function isHebergementConducteur(): ?bool
  62.     {
  63.         return $this->hebergementConducteur;
  64.     }
  65.     public function setHebergementConducteur(?bool $hebergementConducteur): void
  66.     {
  67.         $this->hebergementConducteur $hebergementConducteur;
  68.     }
  69.     public function isPensionConducteur(): ?bool
  70.     {
  71.         return $this->pensionConducteur;
  72.     }
  73.     public function setPensionConducteur(?bool $pensionConducteur): void
  74.     {
  75.         $this->pensionConducteur $pensionConducteur;
  76.     }
  77.     public function isRelais(): ?bool
  78.     {
  79.         return $this->relais;
  80.     }
  81.     public function setRelais(?bool $relais): void
  82.     {
  83.         $this->relais $relais;
  84.     }
  85.     public function isTunnelItalie(): ?bool
  86.     {
  87.         return $this->tunnelItalie;
  88.     }
  89.     public function setTunnelItalie(?bool $tunnelItalie): void
  90.     {
  91.         $this->tunnelItalie $tunnelItalie;
  92.     }
  93.     public function isFerryShuttle(): ?bool
  94.     {
  95.         return $this->ferryShuttle;
  96.     }
  97.     public function setFerryShuttle(?bool $ferryShuttle): void
  98.     {
  99.         $this->ferryShuttle $ferryShuttle;
  100.     }
  101.     public function isTaxeAllemande(): ?bool
  102.     {
  103.         return $this->taxeAllemande;
  104.     }
  105.     public function setTaxeAllemande(?bool $taxeAllemande): void
  106.     {
  107.         $this->taxeAllemande $taxeAllemande;
  108.     }
  109. }