<?phpdeclare(strict_types=1);namespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;/** * ApplicantAction. * * @ORM\Table(name="ApplicantAction") * * @ORM\Entity() */class ApplicantAction{ /** * @var int * * @ORM\Column(name="id", type="integer") * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="intitule", type="string", length=255, nullable=true) */ private $name; /** * @Gedmo\Timestampable(on="create") * * @ORM\Column(name="created", type="datetime") */ private $created; /** * @ORM\Column(name="updated", type="datetime") * * @Gedmo\Timestampable(on="update") */ private $updated; /** * @ORM\ManyToMany(targetEntity="FicheAction", mappedBy="applicants") */ private $fichesAction; /** * Constructor. */ public function __construct() { $this->fichesAction = new \Doctrine\Common\Collections\ArrayCollection(); } #[\Override] public function __toString(): string { return $this->name; } /** * 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; } /** * Set created. * * @param \DateTime $created */ public function setCreated($created): static { $this->created = $created; return $this; } /** * Get created. * * @return \DateTime */ public function getCreated() { return $this->created; } /** * Set updated. * * @param \DateTime $updated */ public function setUpdated($updated): static { $this->updated = $updated; return $this; } /** * Get updated. * * @return \DateTime */ public function getUpdated() { return $this->updated; } /** * 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; }}