<?phpdeclare(strict_types=1);namespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * FicheActionTerritoire. * * @ORM\Table(name="FicheActionTerritoire") * * @ORM\Entity */class FicheActionTerritoire{ /** * @var int * * @ORM\Column(name="id", type="integer") * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="name", type="string", length=255) */ private $name; /** * @ORM\OneToMany(targetEntity="FicheAction", mappedBy="ficheActionTerritoire") */ private $fichesAction; #[\Override] public function __toString(): string { return $this->getName(); } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set name. * * @param string $name */ public function setName($name): static { $this->name = $name; return $this; } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Constructor. */ public function __construct() { $this->fichesAction = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add fichesAction. */ public function addFichesAction(FicheAction $fichesAction): static { $this->fichesAction[] = $fichesAction; return $this; } /** * Remove fichesAction. */ public function removeFichesAction(FicheAction $fichesAction): void { $this->fichesAction->removeElement($fichesAction); } /** * Get fichesAction. * * @return \Doctrine\Common\Collections\Collection */ public function getFichesAction() { return $this->fichesAction; }}