src/Entity/Actuv2Transformationdigitale.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\Actuv2TransformationdigitaleRepository;
  5. use Symfony\Component\Validator\Constraints\Date;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. /**
  9.  * Actuv2Transformationdigitale
  10.  *
  11.  * @Vich\Uploadable
  12.  */
  13. #[ORM\Table(name'actuv2_transformationDigitale')]
  14. #[ORM\Entity(repositoryClassActuv2TransformationdigitaleRepository::class)]
  15. class Actuv2Transformationdigitale
  16. {
  17.     /**
  18.      * @var int
  19.      *
  20.      */
  21.     #[ORM\Column(name'id'type'bigint'nullablefalse)]
  22.     #[ORM\Id]
  23.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  24.     private $id;
  25.     /**
  26.      * @var \DateTime|null
  27.      *
  28.      */
  29.     #[ORM\Column(name'date'type'date'nullabletrueoptions: ['comment' => 'période'])]
  30.     private $date;
  31.     /**
  32.      * @var string
  33.      *
  34.      */
  35.     #[ORM\Column(name'titre'type'string'length255nullabletrue)]
  36.     private $titre '';
  37.     /**
  38.      * @var string
  39.      *
  40.      */
  41.     #[ORM\Column(name'descriptifBeforeTexte'type'text'length16777215nullabletrue)]
  42.     private $descriptifBeforeTexte;
  43.     /**
  44.      * @var string
  45.      *
  46.      */
  47.     #[ORM\Column(name'descriptifBeforeRTF'type'text'length16777215nullabletrue)]
  48.     private $descriptifBeforertf;
  49.     #[ORM\Column(name'descriptifHeaderTexte'type'text'length16777215nullabletrue)]
  50.     private $descriptifHeaderTexte;
  51.     /**
  52.      * @var string
  53.      *
  54.      */
  55.     #[ORM\Column(name'descriptifHeaderRTF'type'text'length16777215nullabletrue)]
  56.     private $descriptifHeaderrtf;
  57.     /**
  58.      * @var string
  59.      *
  60.      */
  61.     #[ORM\Column(name'descriptifTexte'type'text'length16777215nullabletrue)]
  62.     private $descriptifTexte;
  63.     /**
  64.      * @var string
  65.      *
  66.      */
  67.     #[ORM\Column(name'descriptifRTF'type'text'length16777215nullabletrue)]
  68.     private $descriptifrtf;
  69.     /**
  70.      * @var string
  71.      *
  72.      */
  73.     #[ORM\Column(name'site1'type'string'length1028nullabletrue)]
  74.     private $site1 '';
  75.     /**
  76.      * @var string
  77.      *
  78.      */
  79.     #[ORM\Column(name'site2'type'string'length1028nullabletrue)]
  80.     private $site2 '';
  81.     /**
  82.      * @var string
  83.      *
  84.      */
  85.     #[ORM\Column(name'site3'type'string'length1028nullabletrue)]
  86.     private $site3 '';
  87.     /**
  88.      * @var string
  89.      *
  90.      */
  91.     #[ORM\Column(name'siteTitre1'type'string'length255nullabletrue)]
  92.     private $sitetitre1 '';
  93.     /**
  94.      * @var string
  95.      *
  96.      */
  97.     #[ORM\Column(name'siteTitre2'type'string'length255nullabletrue)]
  98.     private $sitetitre2 '';
  99.     /**
  100.      * @var string
  101.      *
  102.      */
  103.     #[ORM\Column(name'siteTitre3'type'string'length255nullabletrue)]
  104.     private $sitetitre3 '';
  105.     /**
  106.      * @var string
  107.      *
  108.      */
  109.     #[ORM\Column(name'codeUrl1'type'string'length255nullabletrue)]
  110.     private $codeurl1 '';
  111.     /**
  112.      * @var string
  113.      *
  114.      */
  115.     #[ORM\Column(name'url1'type'string'length255nullabletrue)]
  116.     private $url1 '';
  117.     /**
  118.      * @var string
  119.      *
  120.      */
  121.     #[ORM\Column(name'codeUrl2'type'string'length255nullabletrue)]
  122.     private $codeurl2 '';
  123.     /**
  124.      * @var string
  125.      *
  126.      */
  127.     #[ORM\Column(name'url2'type'string'length255nullabletrue)]
  128.     private $url2 '';
  129.     /**
  130.      * @var string
  131.      *
  132.      */
  133.     #[ORM\Column(name'codeUrl3'type'string'length255nullabletrue)]
  134.     private $codeurl3 '';
  135.     /**
  136.      * @var string
  137.      *
  138.      */
  139.     #[ORM\Column(name'url3'type'string'length255nullabletrue)]
  140.     private $url3 '';
  141.     /**
  142.      * @var string
  143.      *
  144.      */
  145.     #[ORM\Column(name'titrePdf1'type'string'length255nullabletrue)]
  146.     private $titrepdf1 '';
  147.     /**
  148.      * @var string
  149.      *
  150.      */
  151.     #[ORM\Column(name'titrePdf2'type'string'length255nullabletrue)]
  152.     private $titrepdf2 '';
  153.     /**
  154.      * @var string
  155.      *
  156.      */
  157.     #[ORM\Column(name'titrePdf3'type'string'length255nullabletrue)]
  158.     private $titrepdf3 '';
  159.     /**
  160.      * @var string
  161.      *
  162.      */
  163.     #[ORM\Column(name'image1'nullabletruetype'string'length255options: ['comment' => 'format carré'])]
  164.     private $image1 "";
  165.     /**
  166.      * @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="image1")
  167.      * @var File|null
  168.      */
  169.     private $tmpImage1 null;
  170.     /**
  171.      * @var string
  172.      *
  173.      */
  174.     #[ORM\Column(nullabletruetype'string'length255options: ['comment' => 'format carré'])]
  175.     private $image1Webp "";
  176.     /**
  177.      * @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="image1Webp")
  178.      * @var File|null
  179.      */
  180.     private $tmpImage1Webp null;
  181.     /**
  182.      * @var string
  183.      *
  184.      */
  185.     #[ORM\Column(name'pdf1'nullabletruetype'text')]
  186.     private $pdf1 "";
  187.     /**
  188.      * @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="pdf1")
  189.      * @var File|null
  190.      */
  191.     private $tmpPdf1 null;
  192.     /**
  193.      * @var string
  194.      *
  195.      */
  196.     #[ORM\Column(name'pdf2'nullabletruetype'text')]
  197.     private $pdf2 "";
  198.     /**
  199.      * @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="pdf2")
  200.      * @var File|null
  201.      */
  202.     private $tmpPdf2 null;
  203.     /**
  204.      * @var string
  205.      *
  206.      */
  207.     #[ORM\Column(name'pdf3'nullabletruetype'text')]
  208.     private $pdf3 "";
  209.     /**
  210.      * @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="pdf3")
  211.      * @var File|null
  212.      */
  213.     private $tmpPdf3 null;
  214.     #[ORM\Column(type'datetime'nullabletrue)]
  215.     private $updatedAt;
  216.     public function getId(): ?string
  217.     {
  218.         return $this->id;
  219.     }
  220.     public function getDate(): ?\DateTimeInterface
  221.     {
  222.         return $this->date;
  223.     }
  224.     public function setDate(?\DateTimeInterface $date): self
  225.     {
  226.         $this->date $date;
  227.         return $this;
  228.     }
  229.     public function getTitre(): ?string
  230.     {
  231.         return $this->titre;
  232.     }
  233.     public function setTitre(string $titre): self
  234.     {
  235.         $this->titre $titre;
  236.         return $this;
  237.     }
  238.     public function getDescriptiftexte(): ?string
  239.     {
  240.         return $this->descriptifTexte;
  241.     }
  242.     public function setDescriptiftexte(string $descriptifTexte): self
  243.     {
  244.         $this->descriptifTexte $descriptifTexte;
  245.         return $this;
  246.     }
  247.     public function getDescriptifrtf(): ?string
  248.     {
  249.         return $this->descriptifrtf;
  250.     }
  251.     public function setDescriptifrtf(string $descriptifrtf): self
  252.     {
  253.         $this->descriptifrtf $descriptifrtf;
  254.         $descriptifTexte str_replace('&nbsp;'' '$descriptifrtf);
  255.         $descriptifTexte str_replace('<br />'' '$descriptifTexte);
  256.         $descriptifTexte strip_tags($descriptifTexte);
  257.         $this->descriptifTexte $descriptifTexte;
  258.         return $this;
  259.     }
  260.     public function getDescriptifBeforetexte(): ?string
  261.     {
  262.         return $this->descriptifBeforeTexte;
  263.     }
  264.     public function setDescriptifBeforetexte(string $descriptifBeforeTexte): self
  265.     {
  266.         $this->descriptifBeforeTexte $descriptifBeforeTexte;
  267.         return $this;
  268.     }
  269.     public function getDescriptifBeforertf(): ?string
  270.     {
  271.         return $this->descriptifBeforertf;
  272.     }
  273.     public function setDescriptifBeforertf(string $descriptifBeforertf): self
  274.     {
  275.         $this->descriptifBeforertf $descriptifBeforertf;
  276.         $descriptifBeforeTexte str_replace('&nbsp;'' '$descriptifBeforertf);
  277.         $descriptifBeforeTexte str_replace('<br />'' '$descriptifBeforeTexte);
  278.         $descriptifBeforeTexte strip_tags($descriptifBeforeTexte);
  279.         $this->descriptifBeforeTexte $descriptifBeforeTexte;
  280.         return $this;
  281.     }
  282.     public function getDescriptifHeadertexte(): ?string
  283.     {
  284.         return $this->descriptifHeaderTexte;
  285.     }
  286.     public function setDescriptifHeadertexte(string $descriptifHeaderTexte): self
  287.     {
  288.         $this->descriptifHeaderTexte $descriptifHeaderTexte;
  289.         return $this;
  290.     }
  291.     public function getDescriptifHeaderrtf(): ?string
  292.     {
  293.         return $this->descriptifHeaderrtf;
  294.     }
  295.     public function setDescriptifHeaderrtf(string $descriptifHeaderrtf): self
  296.     {
  297.         $this->descriptifHeaderrtf $descriptifHeaderrtf;
  298.         $descriptifHeaderTexte str_replace('&nbsp;'' '$descriptifHeaderrtf);
  299.         $descriptifHeaderTexte str_replace('<br />'' '$descriptifHeaderTexte);
  300.         $descriptifHeaderTexte strip_tags($descriptifHeaderTexte);
  301.         $this->descriptifHeaderTexte $descriptifHeaderTexte;
  302.         return $this;
  303.     }
  304.     public function getImage1(): ?string
  305.     {
  306.         return $this->image1;
  307.     }
  308.     public function setImage1(?string $image1): self
  309.     {
  310.         $this->image1 is_null($image1) ? "" $image1;
  311.         return $this;
  312.     }
  313.     public function setTmpImage1(?File $tmpImage1 null): void
  314.     {
  315.         $this->tmpImage1 $tmpImage1;
  316.         $this->updatedAt = new \DateTime('now');
  317.     }
  318.     public function getTmpImage1(): ?File
  319.     {
  320.         return $this->tmpImage1;
  321.     }
  322.     public function getImage1Webp(): ?string
  323.     {
  324.         return $this->image1Webp;
  325.     }
  326.     public function setImage1Webp(?string $image1Webp): self
  327.     {
  328.         $this->image1Webp is_null($image1Webp) ? "" $image1Webp;
  329.         return $this;
  330.     }
  331.     public function setTmpImage1Webp(?File $tmpImage1Webp null): void
  332.     {
  333.         $this->tmpImage1Webp $tmpImage1Webp;
  334.         $this->updatedAt = new \DateTime('now');
  335.     }
  336.     public function getTmpImage1Webp(): ?File
  337.     {
  338.         return $this->tmpImage1Webp;
  339.     }
  340.     public function getSite1(): ?string
  341.     {
  342.         return $this->site1;
  343.     }
  344.     public function setSite1(?string $site1): self
  345.     {
  346.         $this->site1 $site1;
  347.         return $this;
  348.     }
  349.     public function getSite2(): ?string
  350.     {
  351.         return $this->site2;
  352.     }
  353.     public function setSite2(?string $site2): self
  354.     {
  355.         $this->site2 $site2;
  356.         return $this;
  357.     }
  358.     public function getSite3(): ?string
  359.     {
  360.         return $this->site3;
  361.     }
  362.     public function setSite3(?string $site3): self
  363.     {
  364.         $this->site3 $site3;
  365.         return $this;
  366.     }
  367.     public function getSitetitre1(): ?string
  368.     {
  369.         return $this->sitetitre1;
  370.     }
  371.     public function setSitetitre1(?string $sitetitre1): self
  372.     {
  373.         $this->sitetitre1 $sitetitre1;
  374.         return $this;
  375.     }
  376.     public function getSitetitre2(): ?string
  377.     {
  378.         return $this->sitetitre2;
  379.     }
  380.     public function setSitetitre2(?string $sitetitre2): self
  381.     {
  382.         $this->sitetitre2 $sitetitre2;
  383.         return $this;
  384.     }
  385.     public function getSitetitre3(): ?string
  386.     {
  387.         return $this->sitetitre3;
  388.     }
  389.     public function setSitetitre3(?string $sitetitre3): self
  390.     {
  391.         $this->sitetitre3 $sitetitre3;
  392.         return $this;
  393.     }
  394.     public function getCodeurl1(): ?string
  395.     {
  396.         return $this->codeurl1;
  397.     }
  398.     public function setCodeurl1(?string $codeurl1): self
  399.     {
  400.         $this->codeurl1 $codeurl1;
  401.         return $this;
  402.     }
  403.     public function getUrl1(): ?string
  404.     {
  405.         return $this->url1;
  406.     }
  407.     public function setUrl1(?string $url1): self
  408.     {
  409.         $this->url1 $url1;
  410.         return $this;
  411.     }
  412.     public function getCodeurl2(): ?string
  413.     {
  414.         return $this->codeurl2;
  415.     }
  416.     public function setCodeurl2(?string $codeurl2): self
  417.     {
  418.         $this->codeurl2 $codeurl2;
  419.         return $this;
  420.     }
  421.     public function getUrl2(): ?string
  422.     {
  423.         return $this->url2;
  424.     }
  425.     public function setUrl2(?string $url2): self
  426.     {
  427.         $this->url2 $url2;
  428.         return $this;
  429.     }
  430.     public function getCodeurl3(): ?string
  431.     {
  432.         return $this->codeurl3;
  433.     }
  434.     public function setCodeurl3(?string $codeurl3): self
  435.     {
  436.         $this->codeurl3 $codeurl3;
  437.         return $this;
  438.     }
  439.     public function getUrl3(): ?string
  440.     {
  441.         return $this->url3;
  442.     }
  443.     public function setUrl3(?string $url3): self
  444.     {
  445.         $this->url3 $url3;
  446.         return $this;
  447.     }
  448.     public function getTitrepdf1(): ?string
  449.     {
  450.         return $this->titrepdf1;
  451.     }
  452.     public function setTitrepdf1(?string $titrepdf1): self
  453.     {
  454.         $this->titrepdf1 $titrepdf1;
  455.         return $this;
  456.     }
  457.     public function getTitrepdf2(): ?string
  458.     {
  459.         return $this->titrepdf2;
  460.     }
  461.     public function setTitrepdf2(?string $titrepdf2): self
  462.     {
  463.         $this->titrepdf2 $titrepdf2;
  464.         return $this;
  465.     }
  466.     public function getTitrepdf3(): ?string
  467.     {
  468.         return $this->titrepdf3;
  469.     }
  470.     public function setTitrepdf3(?string $titrepdf3): self
  471.     {
  472.         $this->titrepdf3 $titrepdf3;
  473.         return $this;
  474.     }
  475.     public function getPdf1(): ?string
  476.     {
  477.         return $this->pdf1;
  478.     }
  479.     public function setPdf1(?string $pdf1): self
  480.     {
  481.         $this->pdf1 is_null($pdf1) ? "" $pdf1;
  482.         return $this;
  483.     }
  484.     public function setTmpPdf1(?File $tmpPdf1 null): void
  485.     {
  486.         $this->tmpPdf1 $tmpPdf1;
  487.         $this->updatedAt = new \DateTime('now');
  488.     }
  489.     public function getTmpPdf1(): ?File
  490.     {
  491.         return $this->tmpPdf1;
  492.     }
  493.     public function getPdf2(): ?string
  494.     {
  495.         return $this->pdf2;
  496.     }
  497.     public function setPdf2(?string $pdf2): self
  498.     {
  499.         $this->pdf2 is_null($pdf2) ? "" $pdf2;
  500.         return $this;
  501.     }
  502.     public function setTmpPdf2(?File $tmpPdf2 null): void
  503.     {
  504.         $this->tmpPdf2 $tmpPdf2;
  505.         $this->updatedAt = new \DateTime('now');
  506.     }
  507.     public function getTmpPdf2(): ?File
  508.     {
  509.         return $this->tmpPdf2;
  510.     }
  511.     public function getPdf3(): ?string
  512.     {
  513.         return $this->pdf3;
  514.     }
  515.     public function setPdf3(?string $pdf3): self
  516.     {
  517.         $this->pdf3 is_null($pdf3) ? "" $pdf3;
  518.         return $this;
  519.     }
  520.     public function setTmpPdf3(?File $tmpPdf3 null): void
  521.     {
  522.         $this->tmpPdf3 $tmpPdf3;
  523.         $this->updatedAt = new \DateTime('now');
  524.     }
  525.     public function getTmpPdf3(): ?File
  526.     {
  527.         return $this->tmpPdf3;
  528.     }
  529.     public function getUpdatedAt(): ?\DateTimeInterface
  530.     {
  531.         return $this->updatedAt;
  532.     }
  533.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  534.     {
  535.         $this->updatedAt $updatedAt;
  536.         return $this;
  537.     }
  538. }