src/Entity/NewsletterProspect.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NewsletterProspectRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. /**
  8.  * @Vich\Uploadable
  9.  */
  10. #[ORM\Entity(repositoryClassNewsletterProspectRepository::class)]
  11. class NewsletterProspect
  12. {
  13.   #[ORM\Id]
  14.   #[ORM\GeneratedValue]
  15.   #[ORM\Column(type'integer')]
  16.   private $id;
  17.   #[ORM\Column(type'date'nullabletrue)]
  18.   private $date;
  19.   #[ORM\Column(type'datetime'nullabletrue)]
  20.   private $updatedAt;
  21.   #[ORM\Column(type'string'length255nullabletrue)]
  22.   private ?string $logoName null;
  23.   /**
  24.    * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="logoName")
  25.    * @var File
  26.    */
  27.   private $logoFile;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private ?string $visuelIntroName null;
  30.     /**
  31.      * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="visuelIntroName")
  32.      * @var File
  33.      */
  34.     private $visuelIntroFile;
  35.     #[ORM\Column(type'string'length255nullabletrue)]
  36.     private $titleIntro;
  37.     #[ORM\Column(type'text'nullabletrue)]
  38.     private $textIntro;
  39.     #[ORM\Column(type'string'length255nullabletrue)]
  40.     private $ctaLinkIntro;
  41.     #[ORM\Column(type'string'length255nullabletrue)]
  42.     private $ctaTextIntro;
  43.     #[ORM\Column(type'string'length255nullabletrue)]
  44.   private ?string $visuelCommuniquerName null;
  45.   /**
  46.    * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="visuelCommuniquerName")
  47.    * @var File
  48.    */
  49.   private $visuelCommuniquerFile;
  50.   #[ORM\Column(type'string'length255nullabletrue)]
  51.   private $ctaCommuniquerLink;
  52.   #[ORM\Column(type'text'nullabletrue)]
  53.   private $serviceWidgetText;
  54.   #[ORM\Column(type'string'length255nullabletrue)]
  55.   private $serviceWidgetCtaLink;
  56.   #[ORM\Column(type'string'length255nullabletrue)]
  57.   private ?string $siteMoisVisuelName null;
  58.   /**
  59.    * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="siteMoisVisuelName")
  60.    * @var File
  61.    */
  62.   private $siteMoisVisuelFile;
  63.   #[ORM\Column(type'string'length255nullabletrue)]
  64.   private $siteMoisCabinetName;
  65.   #[ORM\Column(type'string'length255nullabletrue)]
  66.   private $siteMoisCtaLink;
  67.   #[ORM\Column(type'text'nullabletrue)]
  68.   private $appelEcText;
  69.   #[ORM\Column(type'string'length255nullabletrue)]
  70.   private $appelEcCtaLink;
  71.   #[ORM\Column(type'string'length255nullabletrue)]
  72.   private ?string $conseilAstuceVisuelName null;
  73.   /**
  74.    * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="conseilAstuceVisuelName")
  75.    * @var File
  76.    */
  77.   private $conseilAstuceVisuelFile;
  78.   #[ORM\Column(type'string'length255nullabletrue)]
  79.   private $conseilAstuceTitle;
  80.   #[ORM\Column(type'string'length255nullabletrue)]
  81.   private $conseilAstuceCtaLink;
  82.   #[ORM\Column(type'string'length255nullabletrue)]
  83.   private ?string $tourFranceVisuelName null;
  84.   /**
  85.    * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="tourFranceVisuelName")
  86.    * @var File
  87.    */
  88.   private $tourFranceVisuelFile;
  89.   #[ORM\Column(type'text'nullabletrue)]
  90.   private $tourFranceText;
  91.   #[ORM\Column(type'string'length255nullabletrue)]
  92.   private ?string $avisVisuelName null;
  93.   /**
  94.    * @Vich\UploadableField(mapping="newsletter_prospect_file", fileNameProperty="avisVisuelName")
  95.    * @var File
  96.    */
  97.   private $avisVisuelFile;
  98.   #[ORM\Column(type'text'nullabletrue)]
  99.   private $avisText;
  100.   #[ORM\Column(type'string'length255nullabletrue)]
  101.   private $avisName;
  102.   #[ORM\Column(type'string'length255nullabletrue)]
  103.   private $avisCabinet;
  104.   #[ORM\Column(type'string'length255nullabletrue)]
  105.   private $avisCity;
  106.   #[ORM\ManyToOne(targetEntityNewsletterProspectPartner::class, inversedBy'newsletterProspect')]
  107.   private $partner;
  108.   public function getId(): ?int
  109.   {
  110.     return $this->id;
  111.   }
  112.   public function getDate(): ?\DateTimeInterface
  113.   {
  114.     return $this->date;
  115.   }
  116.   public function setDate(?\DateTimeInterface $date): self
  117.   {
  118.     $this->date $date;
  119.     return $this;
  120.   }
  121.   public function getCtaCommuniquerLink(): ?string
  122.   {
  123.     return $this->ctaCommuniquerLink;
  124.   }
  125.   public function setCtaCommuniquerLink(?string $ctaCommuniquerLink): self
  126.   {
  127.     $this->ctaCommuniquerLink $ctaCommuniquerLink;
  128.     return $this;
  129.   }
  130.   public function getServiceWidgetText(): ?string
  131.   {
  132.     return $this->serviceWidgetText;
  133.   }
  134.   public function setServiceWidgetText(?string $serviceWidgetText): self
  135.   {
  136.     $this->serviceWidgetText $serviceWidgetText;
  137.     return $this;
  138.   }
  139.   public function getServiceWidgetCtaLink(): ?string
  140.   {
  141.     return $this->serviceWidgetCtaLink;
  142.   }
  143.   public function setServiceWidgetCtaLink(?string $serviceWidgetCtaLink): self
  144.   {
  145.     $this->serviceWidgetCtaLink $serviceWidgetCtaLink;
  146.     return $this;
  147.   }
  148.   public function getSiteMoisCabinetName(): ?string
  149.   {
  150.     return $this->siteMoisCabinetName;
  151.   }
  152.   public function setSiteMoisCabinetName(?string $siteMoisCabinetName): self
  153.   {
  154.     $this->siteMoisCabinetName $siteMoisCabinetName;
  155.     return $this;
  156.   }
  157.   public function getSiteMoisCtaLink(): ?string
  158.   {
  159.     return $this->siteMoisCtaLink;
  160.   }
  161.   public function setSiteMoisCtaLink(?string $siteMoisCtaLink): self
  162.   {
  163.     $this->siteMoisCtaLink $siteMoisCtaLink;
  164.     return $this;
  165.   }
  166.   public function getAppelEcText(): ?string
  167.   {
  168.     return $this->appelEcText;
  169.   }
  170.   public function setAppelEcText(?string $appelEcText): self
  171.   {
  172.     $this->appelEcText $appelEcText;
  173.     return $this;
  174.   }
  175.   public function getAppelEcCtaLink(): ?string
  176.   {
  177.     return $this->appelEcCtaLink;
  178.   }
  179.   public function setAppelEcCtaLink(?string $appelEcCtaLink): self
  180.   {
  181.     $this->appelEcCtaLink $appelEcCtaLink;
  182.     return $this;
  183.   }
  184.   public function getConseilAstuceTitle(): ?string
  185.   {
  186.     return $this->conseilAstuceTitle;
  187.   }
  188.   public function setConseilAstuceTitle(?string $conseilAstuceTitle): self
  189.   {
  190.     $this->conseilAstuceTitle $conseilAstuceTitle;
  191.     return $this;
  192.   }
  193.   public function getConseilAstuceCtaLink(): ?string
  194.   {
  195.     return $this->conseilAstuceCtaLink;
  196.   }
  197.   public function setConseilAstuceCtaLink(?string $conseilAstuceCtaLink): self
  198.   {
  199.     $this->conseilAstuceCtaLink $conseilAstuceCtaLink;
  200.     return $this;
  201.   }
  202.   public function getTourFranceText(): ?string
  203.   {
  204.     return $this->tourFranceText;
  205.   }
  206.   public function setTourFranceText(?string $tourFranceText): self
  207.   {
  208.     $this->tourFranceText $tourFranceText;
  209.     return $this;
  210.   }
  211.   public function getAvisText(): ?string
  212.   {
  213.     return $this->avisText;
  214.   }
  215.   public function setAvisText(?string $avisText): self
  216.   {
  217.     $this->avisText $avisText;
  218.     return $this;
  219.   }
  220.   public function getAvisName(): ?string
  221.   {
  222.     return $this->avisName;
  223.   }
  224.   public function setAvisName(?string $avisName): self
  225.   {
  226.     $this->avisName $avisName;
  227.     return $this;
  228.   }
  229.   public function getAvisCabinet(): ?string
  230.   {
  231.     return $this->avisCabinet;
  232.   }
  233.   public function setAvisCabinet(?string $avisCabinet): self
  234.   {
  235.     $this->avisCabinet $avisCabinet;
  236.     return $this;
  237.   }
  238.   public function getAvisCity(): ?string
  239.   {
  240.     return $this->avisCity;
  241.   }
  242.   public function setAvisCity(?string $avisCity): self
  243.   {
  244.     $this->avisCity $avisCity;
  245.     return $this;
  246.   }
  247.   public function getLogoName(): ?string
  248.   {
  249.     return $this->logoName;
  250.   }
  251.   public function setLogoName(?string $logoName): self
  252.   {
  253.     $this->logoName $logoName;
  254.     return $this;
  255.   }
  256.   public function setLogoFile(?File $file null)
  257.   {
  258.     $this->logoFile $file;
  259.     // VERY IMPORTANT:
  260.     // It is required that at least one field changes if you are using Doctrine,
  261.     // otherwise the event listeners won't be called and the file is lost
  262.     if ($file) {
  263.       // if 'updatedAt' is not defined in your entity, use another property
  264.       $this->updatedAt = new \DateTime('now');
  265.     }
  266.   }
  267.   public function getLogoFile()
  268.   {
  269.     return $this->logoFile;
  270.   }
  271.   public function getVisuelIntroName(): ?string
  272.   {
  273.     return $this->visuelIntroName;
  274.   }
  275.   public function setVisuelIntroName(?string $visuelIntroName): self
  276.   {
  277.     $this->visuelIntroName $visuelIntroName;
  278.     return $this;
  279.   }
  280.   public function setVisuelIntroFile(?File $file null)
  281.   {
  282.     $this->visuelIntroFile $file;
  283.     // VERY IMPORTANT:
  284.     // It is required that at least one field changes if you are using Doctrine,
  285.     // otherwise the event listeners won't be called and the file is lost
  286.     if ($file) {
  287.       // if 'updatedAt' is not defined in your entity, use another property
  288.       $this->updatedAt = new \DateTime('now');
  289.     }
  290.   }
  291.   public function getVisuelIntroFile()
  292.   {
  293.     return $this->visuelIntroFile;
  294.   }
  295.   public function getVisuelCommuniquerName(): ?string
  296.   {
  297.     return $this->visuelCommuniquerName;
  298.   }
  299.   public function setVisuelCommuniquerName(?string $visuelCommuniquerName): self
  300.   {
  301.     $this->visuelCommuniquerName $visuelCommuniquerName;
  302.     return $this;
  303.   }
  304.   public function setVisuelCommuniquerFile(?File $file null)
  305.   {
  306.     $this->visuelCommuniquerFile $file;
  307.     // VERY IMPORTANT:
  308.     // It is required that at least one field changes if you are using Doctrine,
  309.     // otherwise the event listeners won't be called and the file is lost
  310.     if ($file) {
  311.       // if 'updatedAt' is not defined in your entity, use another property
  312.       $this->updatedAt = new \DateTime('now');
  313.     }
  314.   }
  315.   public function getVisuelCommuniquerFile()
  316.   {
  317.     return $this->visuelCommuniquerFile;
  318.   }
  319.   public function getSiteMoisVisuelName(): ?string
  320.   {
  321.     return $this->siteMoisVisuelName;
  322.   }
  323.   public function setSiteMoisVisuelName(?string $siteMoisVisuelName): self
  324.   {
  325.     $this->siteMoisVisuelName $siteMoisVisuelName;
  326.     return $this;
  327.   }
  328.   public function setSiteMoisVisuelFile(?File $file null)
  329.   {
  330.     $this->siteMoisVisuelFile $file;
  331.     // VERY IMPORTANT:
  332.     // It is required that at least one field changes if you are using Doctrine,
  333.     // otherwise the event listeners won't be called and the file is lost
  334.     if ($file) {
  335.       // if 'updatedAt' is not defined in your entity, use another property
  336.       $this->updatedAt = new \DateTime('now');
  337.     }
  338.   }
  339.   public function getSiteMoisVisuelFile()
  340.   {
  341.     return $this->siteMoisVisuelFile;
  342.   }
  343.   public function getConseilAstuceVisuelName(): ?string
  344.   {
  345.     return $this->conseilAstuceVisuelName;
  346.   }
  347.   public function setConseilAstuceVisuelName(?string $conseilAstuceVisuelName): self
  348.   {
  349.     $this->conseilAstuceVisuelName $conseilAstuceVisuelName;
  350.     return $this;
  351.   }
  352.   public function setConseilAstuceVisuelFile(?File $file null)
  353.   {
  354.     $this->conseilAstuceVisuelFile $file;
  355.     // VERY IMPORTANT:
  356.     // It is required that at least one field changes if you are using Doctrine,
  357.     // otherwise the event listeners won't be called and the file is lost
  358.     if ($file) {
  359.       // if 'updatedAt' is not defined in your entity, use another property
  360.       $this->updatedAt = new \DateTime('now');
  361.     }
  362.   }
  363.   public function getConseilAstuceVisuelFile()
  364.   {
  365.     return $this->conseilAstuceVisuelFile;
  366.   }
  367.   public function getTourFranceVisuelName(): ?string
  368.   {
  369.     return $this->tourFranceVisuelName;
  370.   }
  371.   public function setTourFranceVisuelName(?string $tourFranceVisuelName): self
  372.   {
  373.     $this->tourFranceVisuelName $tourFranceVisuelName;
  374.     return $this;
  375.   }
  376.   public function setTourFranceVisuelFile(?File $file null)
  377.   {
  378.     $this->tourFranceVisuelFile $file;
  379.     // VERY IMPORTANT:
  380.     // It is required that at least one field changes if you are using Doctrine,
  381.     // otherwise the event listeners won't be called and the file is lost
  382.     if ($file) {
  383.       // if 'updatedAt' is not defined in your entity, use another property
  384.       $this->updatedAt = new \DateTime('now');
  385.     }
  386.   }
  387.   public function getTourFranceVisuelFile()
  388.   {
  389.     return $this->tourFranceVisuelFile;
  390.   }
  391.   public function getAvisVisuelName(): ?string
  392.   {
  393.     return $this->avisVisuelName;
  394.   }
  395.   public function setAvisVisuelName(?string $avisVisuelName): self
  396.   {
  397.     $this->avisVisuelName $avisVisuelName;
  398.     return $this;
  399.   }
  400.   public function setAvisVisuelFile(?File $file null)
  401.   {
  402.     $this->avisVisuelFile $file;
  403.     // VERY IMPORTANT:
  404.     // It is required that at least one field changes if you are using Doctrine,
  405.     // otherwise the event listeners won't be called and the file is lost
  406.     if ($file) {
  407.       // if 'updatedAt' is not defined in your entity, use another property
  408.       $this->updatedAt = new \DateTime('now');
  409.     }
  410.   }
  411.   public function getAvisVisuelFile()
  412.   {
  413.     return $this->avisVisuelFile;
  414.   }
  415.   public function getUpdatedAt(): ?\DateTimeInterface
  416.   {
  417.     return $this->updatedAt;
  418.   }
  419.   public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  420.   {
  421.     $this->updatedAt $updatedAt;
  422.     return $this;
  423.   }
  424.   public function getPartner(): ?NewsletterProspectPartner
  425.   {
  426.       return $this->partner;
  427.   }
  428.   public function setPartner(?NewsletterProspectPartner $partner): self
  429.   {
  430.       $this->partner $partner;
  431.       return $this;
  432.   }
  433.   public function getTitleIntro(): ?string
  434.   {
  435.     return $this->titleIntro;
  436.   }
  437.   public function setTitleIntro(?string $titleIntro): self
  438.   {
  439.     $this->titleIntro $titleIntro;
  440.     return $this;
  441.   }
  442.   public function getTextIntro(): ?string
  443.   {
  444.     return $this->textIntro;
  445.   }
  446.   public function setTextIntro(?string $textIntro): self
  447.   {
  448.     $this->textIntro $textIntro;
  449.     return $this;
  450.   }
  451.   public function getCtaLinkIntro(): ?string
  452.   {
  453.     return $this->ctaLinkIntro;
  454.   }
  455.   public function setCtaLinkIntro(?string $ctaLinkIntro): self
  456.   {
  457.     $this->ctaLinkIntro $ctaLinkIntro;
  458.     return $this;
  459.   }
  460.   public function getCtaTextIntro(): ?string
  461.   {
  462.     return $this->ctaTextIntro;
  463.   }
  464.   public function setCtaTextIntro(?string $ctaTextIntro): self
  465.   {
  466.     $this->ctaTextIntro $ctaTextIntro;
  467.     return $this;
  468.   }
  469. }