src/Entity/ParamGlobalDet.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParamGlobalDetRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassParamGlobalDetRepository::class)]
  6. class ParamGlobalDet
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'paramGlobalDets')]
  13.     private ?ParamGlobalCab $paramGlobalCab null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $designation null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?bool $active null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getParamGlobalCab(): ?ParamGlobalCab
  23.     {
  24.         return $this->paramGlobalCab;
  25.     }
  26.     public function setParamGlobalCab(?ParamGlobalCab $paramGlobalCab): static
  27.     {
  28.         $this->paramGlobalCab $paramGlobalCab;
  29.         return $this;
  30.     }
  31.     public function getDesignation(): ?string
  32.     {
  33.         return $this->designation;
  34.     }
  35.     public function setDesignation(?string $designation): static
  36.     {
  37.         $this->designation $designation;
  38.         return $this;
  39.     }
  40.     public function isActive(): ?bool
  41.     {
  42.         return $this->active;
  43.     }
  44.     public function setActive(?bool $active): static
  45.     {
  46.         $this->active $active;
  47.         return $this;
  48.     }
  49. }