<?phpdeclare(strict_types=1);namespace App\Entity;use App\Repository\GrandeRegionRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * GrandeRegion. * * @ORM\Table(name="GrandeRegion") * * @ORM\Entity(repositoryClass=GrandeRegionRepository::class) */class GrandeRegion{ /** * @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="Region", mappedBy="grandeRegion") */ private $regions; /** * @ORM\OneToMany(targetEntity="Structure", mappedBy="grandeRegion") */ private $structures; /** * 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; } /** * Constructor. */ public function __construct() { $this->regions = new \Doctrine\Common\Collections\ArrayCollection(); $this->structures = new ArrayCollection(); } /** * Add region. */ public function addRegion(Region $region): static { $this->regions[] = $region; return $this; } /** * Remove region. */ public function removeRegion(Region $region): void { $this->regions->removeElement($region); } /** * Get regions. * * @return \Doctrine\Common\Collections\Collection */ public function getRegions() { return $this->regions; } /** * Add structure. */ public function addStructure(Structure $structure): static { $this->structures[] = $structure; return $this; } /** * Remove structure. */ public function removeStructure(Structure $structure): void { $this->structures->removeElement($structure); } /** * Get structures. * * @return \Doctrine\Common\Collections\Collection */ public function getStructures() { return $this->structures; }}