<?phpdeclare(strict_types=1);namespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * ActionPublic. * * @ORM\Table(name="ActionPublic") * * @ORM\Entity */class ActionPublic{ /** * @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="Action", mappedBy="actionPublic") */ private $actions; #[\Override] public function __toString(): string { return $this->nom; } /** * 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->actions = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add actions. */ public function addAction(Action $actions): static { $this->actions[] = $actions; return $this; } /** * Remove actions. */ public function removeAction(Action $actions): void { $this->actions->removeElement($actions); } /** * Get actions. * * @return \Doctrine\Common\Collections\Collection */ public function getActions() { return $this->actions; }}