<?php
namespace App\Entity;
use App\Repository\AttributGroupeLiaisonRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AttributGroupeLiaisonRepository::class)]
class AttributGroupeLiaison
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?VariablesGroup $attributGroupe = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: true)]
private ?ContactType $contactType = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: true)]
private ?ObjetType $objetType = null;
#[ORM\Column(type: 'integer', options: ['default' => 1])]
private int $colonne = 1;
#[ORM\Column(type: 'integer', options: ['default' => 10])]
private int $ordre = 10;
// Getters & setters
public function getId(): ?int
{
return $this->id;
}
public function getAttributGroupe(): ?VariablesGroup
{
return $this->attributGroupe;
}
public function setAttributGroupe(?VariablesGroup $attributGroupe): self
{
$this->attributGroupe = $attributGroupe;
return $this;
}
public function getContactType(): ?ContactType
{
return $this->contactType;
}
public function setContactType(?ContactType $contactType): self
{
$this->contactType = $contactType;
return $this;
}
public function getObjetType(): ?ObjetType
{
return $this->objetType;
}
public function setObjetType(?ObjetType $objetType): self
{
$this->objetType = $objetType;
return $this;
}
public function getColonne(): int
{
return $this->colonne;
}
public function setColonne(int $colonne): self
{
$this->colonne = $colonne;
return $this;
}
public function getOrdre(): int
{
return $this->ordre;
}
public function setOrdre(int $ordre): self
{
$this->ordre = $ordre;
return $this;
}
}