<?php
namespace App\Entity;
use App\Repository\NewsletterProspectRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable
*/
#[ORM\Entity(repositoryClass: NewsletterProspectRepository::class)]
class NewsletterProspect
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'date', nullable: true)]
private $date;
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $logoName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="logoName")
* @var File
*/
private $logoFile;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $visuelIntroName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="visuelIntroName")
* @var File
*/
private $visuelIntroFile;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $titleIntro;
#[ORM\Column(type: 'text', nullable: true)]
private $textIntro;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $ctaLinkIntro;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $ctaTextIntro;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $visuelCommuniquerName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="visuelCommuniquerName")
* @var File
*/
private $visuelCommuniquerFile;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $ctaCommuniquerLink;
#[ORM\Column(type: 'text', nullable: true)]
private $serviceWidgetText;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $serviceWidgetCtaLink;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $siteMoisVisuelName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="siteMoisVisuelName")
* @var File
*/
private $siteMoisVisuelFile;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $siteMoisCabinetName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $siteMoisCtaLink;
#[ORM\Column(type: 'text', nullable: true)]
private $appelEcText;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $appelEcCtaLink;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $conseilAstuceVisuelName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="conseilAstuceVisuelName")
* @var File
*/
private $conseilAstuceVisuelFile;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $conseilAstuceTitle;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $conseilAstuceCtaLink;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $tourFranceVisuelName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="tourFranceVisuelName")
* @var File
*/
private $tourFranceVisuelFile;
#[ORM\Column(type: 'text', nullable: true)]
private $tourFranceText;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $avisVisuelName = null;
/**
* @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="avisVisuelName")
* @var File
*/
private $avisVisuelFile;
#[ORM\Column(type: 'text', nullable: true)]
private $avisText;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $avisName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $avisCabinet;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $avisCity;
#[ORM\ManyToOne(targetEntity: NewsletterProspectPartner::class, inversedBy: 'newsletterProspect')]
private $partner;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getCtaCommuniquerLink(): ?string
{
return $this->ctaCommuniquerLink;
}
public function setCtaCommuniquerLink(?string $ctaCommuniquerLink): self
{
$this->ctaCommuniquerLink = $ctaCommuniquerLink;
return $this;
}
public function getServiceWidgetText(): ?string
{
return $this->serviceWidgetText;
}
public function setServiceWidgetText(?string $serviceWidgetText): self
{
$this->serviceWidgetText = $serviceWidgetText;
return $this;
}
public function getServiceWidgetCtaLink(): ?string
{
return $this->serviceWidgetCtaLink;
}
public function setServiceWidgetCtaLink(?string $serviceWidgetCtaLink): self
{
$this->serviceWidgetCtaLink = $serviceWidgetCtaLink;
return $this;
}
public function getSiteMoisCabinetName(): ?string
{
return $this->siteMoisCabinetName;
}
public function setSiteMoisCabinetName(?string $siteMoisCabinetName): self
{
$this->siteMoisCabinetName = $siteMoisCabinetName;
return $this;
}
public function getSiteMoisCtaLink(): ?string
{
return $this->siteMoisCtaLink;
}
public function setSiteMoisCtaLink(?string $siteMoisCtaLink): self
{
$this->siteMoisCtaLink = $siteMoisCtaLink;
return $this;
}
public function getAppelEcText(): ?string
{
return $this->appelEcText;
}
public function setAppelEcText(?string $appelEcText): self
{
$this->appelEcText = $appelEcText;
return $this;
}
public function getAppelEcCtaLink(): ?string
{
return $this->appelEcCtaLink;
}
public function setAppelEcCtaLink(?string $appelEcCtaLink): self
{
$this->appelEcCtaLink = $appelEcCtaLink;
return $this;
}
public function getConseilAstuceTitle(): ?string
{
return $this->conseilAstuceTitle;
}
public function setConseilAstuceTitle(?string $conseilAstuceTitle): self
{
$this->conseilAstuceTitle = $conseilAstuceTitle;
return $this;
}
public function getConseilAstuceCtaLink(): ?string
{
return $this->conseilAstuceCtaLink;
}
public function setConseilAstuceCtaLink(?string $conseilAstuceCtaLink): self
{
$this->conseilAstuceCtaLink = $conseilAstuceCtaLink;
return $this;
}
public function getTourFranceText(): ?string
{
return $this->tourFranceText;
}
public function setTourFranceText(?string $tourFranceText): self
{
$this->tourFranceText = $tourFranceText;
return $this;
}
public function getAvisText(): ?string
{
return $this->avisText;
}
public function setAvisText(?string $avisText): self
{
$this->avisText = $avisText;
return $this;
}
public function getAvisName(): ?string
{
return $this->avisName;
}
public function setAvisName(?string $avisName): self
{
$this->avisName = $avisName;
return $this;
}
public function getAvisCabinet(): ?string
{
return $this->avisCabinet;
}
public function setAvisCabinet(?string $avisCabinet): self
{
$this->avisCabinet = $avisCabinet;
return $this;
}
public function getAvisCity(): ?string
{
return $this->avisCity;
}
public function setAvisCity(?string $avisCity): self
{
$this->avisCity = $avisCity;
return $this;
}
public function getLogoName(): ?string
{
return $this->logoName;
}
public function setLogoName(?string $logoName): self
{
$this->logoName = $logoName;
return $this;
}
public function setLogoFile(?File $file = null)
{
$this->logoFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getLogoFile()
{
return $this->logoFile;
}
public function getVisuelIntroName(): ?string
{
return $this->visuelIntroName;
}
public function setVisuelIntroName(?string $visuelIntroName): self
{
$this->visuelIntroName = $visuelIntroName;
return $this;
}
public function setVisuelIntroFile(?File $file = null)
{
$this->visuelIntroFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getVisuelIntroFile()
{
return $this->visuelIntroFile;
}
public function getVisuelCommuniquerName(): ?string
{
return $this->visuelCommuniquerName;
}
public function setVisuelCommuniquerName(?string $visuelCommuniquerName): self
{
$this->visuelCommuniquerName = $visuelCommuniquerName;
return $this;
}
public function setVisuelCommuniquerFile(?File $file = null)
{
$this->visuelCommuniquerFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getVisuelCommuniquerFile()
{
return $this->visuelCommuniquerFile;
}
public function getSiteMoisVisuelName(): ?string
{
return $this->siteMoisVisuelName;
}
public function setSiteMoisVisuelName(?string $siteMoisVisuelName): self
{
$this->siteMoisVisuelName = $siteMoisVisuelName;
return $this;
}
public function setSiteMoisVisuelFile(?File $file = null)
{
$this->siteMoisVisuelFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getSiteMoisVisuelFile()
{
return $this->siteMoisVisuelFile;
}
public function getConseilAstuceVisuelName(): ?string
{
return $this->conseilAstuceVisuelName;
}
public function setConseilAstuceVisuelName(?string $conseilAstuceVisuelName): self
{
$this->conseilAstuceVisuelName = $conseilAstuceVisuelName;
return $this;
}
public function setConseilAstuceVisuelFile(?File $file = null)
{
$this->conseilAstuceVisuelFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getConseilAstuceVisuelFile()
{
return $this->conseilAstuceVisuelFile;
}
public function getTourFranceVisuelName(): ?string
{
return $this->tourFranceVisuelName;
}
public function setTourFranceVisuelName(?string $tourFranceVisuelName): self
{
$this->tourFranceVisuelName = $tourFranceVisuelName;
return $this;
}
public function setTourFranceVisuelFile(?File $file = null)
{
$this->tourFranceVisuelFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getTourFranceVisuelFile()
{
return $this->tourFranceVisuelFile;
}
public function getAvisVisuelName(): ?string
{
return $this->avisVisuelName;
}
public function setAvisVisuelName(?string $avisVisuelName): self
{
$this->avisVisuelName = $avisVisuelName;
return $this;
}
public function setAvisVisuelFile(?File $file = null)
{
$this->avisVisuelFile = $file;
// VERY IMPORTANT:
// It is required that at least one field changes if you are using Doctrine,
// otherwise the event listeners won't be called and the file is lost
if ($file) {
// if 'updatedAt' is not defined in your entity, use another property
$this->updatedAt = new \DateTime('now');
}
}
public function getAvisVisuelFile()
{
return $this->avisVisuelFile;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getPartner(): ?NewsletterProspectPartner
{
return $this->partner;
}
public function setPartner(?NewsletterProspectPartner $partner): self
{
$this->partner = $partner;
return $this;
}
public function getTitleIntro(): ?string
{
return $this->titleIntro;
}
public function setTitleIntro(?string $titleIntro): self
{
$this->titleIntro = $titleIntro;
return $this;
}
public function getTextIntro(): ?string
{
return $this->textIntro;
}
public function setTextIntro(?string $textIntro): self
{
$this->textIntro = $textIntro;
return $this;
}
public function getCtaLinkIntro(): ?string
{
return $this->ctaLinkIntro;
}
public function setCtaLinkIntro(?string $ctaLinkIntro): self
{
$this->ctaLinkIntro = $ctaLinkIntro;
return $this;
}
public function getCtaTextIntro(): ?string
{
return $this->ctaTextIntro;
}
public function setCtaTextIntro(?string $ctaTextIntro): self
{
$this->ctaTextIntro = $ctaTextIntro;
return $this;
}
}