<?phpdeclare(strict_types=1);namespace App\Entity;use App\Repository\PartnerActionRepository;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;/** * PartnerAction. * * @ORM\Table(name="PartnerAction") * * @ORM\Entity(repositoryClass=PartnerActionRepository::class) */class PartnerAction{ public $fichesAction; /** * @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="actionPartners") */ private $fichesActionAction; /** * @ORM\ManyToMany(targetEntity="FicheAction", mappedBy="financialPartners") */ private $fichesActionPartners; /** * Constructor. */ public function __construct() { $this->fichesAction = new \Doctrine\Common\Collections\ArrayCollection(); $this->fichesActionAction = new ArrayCollection(); $this->fichesActionPartners = new ArrayCollection(); } #[\Override] public function __toString(): string { return $this->name; } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set name. * * @param string $name * * @return DimensionAction */ 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 * * @return DimensionAction */ 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 * * @return DimensionAction */ public function setUpdated($updated): static { $this->updated = $updated; return $this; } /** * Get updated. * * @return \DateTime */ public function getUpdated() { return $this->updated; } /** * Add fichesAction. * * @return DimensionAction */ 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; } /** * Add fichesActionAction. */ public function addFichesActionAction(FicheAction $fichesActionAction): static { $this->fichesActionAction[] = $fichesActionAction; return $this; } /** * Remove fichesActionAction. */ public function removeFichesActionAction(FicheAction $fichesActionAction): void { $this->fichesActionAction->removeElement($fichesActionAction); } /** * Get fichesActionAction. * * @return \Doctrine\Common\Collections\Collection */ public function getFichesActionAction() { return $this->fichesActionAction; } /** * Add fichesActionPartners. */ public function addFichesActionPartner(FicheAction $fichesActionPartners): static { $this->fichesActionPartners[] = $fichesActionPartners; return $this; } /** * Remove fichesActionPartners. */ public function removeFichesActionPartner(FicheAction $fichesActionPartners): void { $this->fichesActionPartners->removeElement($fichesActionPartners); } /** * Get fichesActionPartners. * * @return \Doctrine\Common\Collections\Collection */ public function getFichesActionPartners() { return $this->fichesActionPartners; }}