src/Entity/AttributGroupeLiaison.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AttributGroupeLiaisonRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAttributGroupeLiaisonRepository::class)]
  6. class AttributGroupeLiaison
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?VariablesGroup $attributGroupe null;
  15.     #[ORM\ManyToOne]
  16.     #[ORM\JoinColumn(nullabletrue)]
  17.     private ?ContactType $contactType null;
  18.     #[ORM\ManyToOne]
  19.     #[ORM\JoinColumn(nullabletrue)]
  20.     private ?ObjetType $objetType null;
  21.     #[ORM\Column(type'integer'options: ['default' => 1])]
  22.     private int $colonne 1;
  23.     #[ORM\Column(type'integer'options: ['default' => 10])]
  24.     private int $ordre 10;
  25.     // Getters & setters
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getAttributGroupe(): ?VariablesGroup
  31.     {
  32.         return $this->attributGroupe;
  33.     }
  34.     public function setAttributGroupe(?VariablesGroup $attributGroupe): self
  35.     {
  36.         $this->attributGroupe $attributGroupe;
  37.         return $this;
  38.     }
  39.     public function getContactType(): ?ContactType
  40.     {
  41.         return $this->contactType;
  42.     }
  43.     public function setContactType(?ContactType $contactType): self
  44.     {
  45.         $this->contactType $contactType;
  46.         return $this;
  47.     }
  48.     public function getObjetType(): ?ObjetType
  49.     {
  50.         return $this->objetType;
  51.     }
  52.     public function setObjetType(?ObjetType $objetType): self
  53.     {
  54.         $this->objetType $objetType;
  55.         return $this;
  56.     }
  57.     public function getColonne(): int
  58.     {
  59.         return $this->colonne;
  60.     }
  61.     public function setColonne(int $colonne): self
  62.     {
  63.         $this->colonne $colonne;
  64.         return $this;
  65.     }
  66.     public function getOrdre(): int
  67.     {
  68.         return $this->ordre;
  69.     }
  70.     public function setOrdre(int $ordre): self
  71.     {
  72.         $this->ordre $ordre;
  73.         return $this;
  74.     }
  75. }