<?phpdeclare(strict_types=1);namespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * AdherentAutreFederation. * * @ORM\Table(name="AdherentAutreFederation") * * @ORM\Entity */class AdherentAutreFederation{ /** * @var int * * @ORM\Column(name="id", type="integer") * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="nom", type="string", length=255) */ private $nom; /** * @ORM\OneToMany(targetEntity="Structure", mappedBy="adherentAutreFederation") */ private $structures; /** * @ORM\ManyToMany(targetEntity="Structure", mappedBy="adherentAutreFederation2") */ private $structures2; /** * @ORM\OneToMany(targetEntity="FiltreStructure", mappedBy="adherentAutreFederation") */ private $filtreStructures; /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set nom. * * @param string $nom */ public function setNom($nom): static { $this->nom = $nom; return $this; } /** * Get nom. * * @return string */ public function getNom() { return $this->nom; } /** * Methode pour afficher le nom. */ #[\Override] public function __toString(): string { return $this->getNom(); } /** * Constructor. */ public function __construct() { $this->structures = new \Doctrine\Common\Collections\ArrayCollection(); $this->structures2 = new ArrayCollection(); $this->filtreStructures = new ArrayCollection(); } /** * Add structures. */ public function addStructure(Structure $structures): static { $this->structures[] = $structures; return $this; } /** * Remove structures. */ public function removeStructure(Structure $structures): void { $this->structures->removeElement($structures); } /** * Get structures. * * @return \Doctrine\Common\Collections\Collection */ public function getStructures() { return $this->structures; } /** * Add filtreStructures. */ public function addFiltreStructure(FiltreStructure $filtreStructures): static { $this->filtreStructures[] = $filtreStructures; return $this; } /** * Remove filtreStructures. */ public function removeFiltreStructure(FiltreStructure $filtreStructures): void { $this->filtreStructures->removeElement($filtreStructures); } /** * Get filtreStructures. * * @return \Doctrine\Common\Collections\Collection */ public function getFiltreStructures() { return $this->filtreStructures; } /** * Add structures2. */ public function addStructures2(Structure $structures2): static { $this->structures2[] = $structures2; return $this; } /** * Remove structures2. */ public function removeStructures2(Structure $structures2): void { $this->structures2->removeElement($structures2); } /** * Get structures2. * * @return \Doctrine\Common\Collections\Collection */ public function getStructures2() { return $this->structures2; }}