<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\Actuv2TransformationdigitaleRepository;
use Symfony\Component\Validator\Constraints\Date;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\HttpFoundation\File\File;
/**
* Actuv2Transformationdigitale
*
* @Vich\Uploadable
*/
#[ORM\Table(name: 'actuv2_transformationDigitale')]
#[ORM\Entity(repositoryClass: Actuv2TransformationdigitaleRepository::class)]
class Actuv2Transformationdigitale
{
/**
* @var int
*
*/
#[ORM\Column(name: 'id', type: 'bigint', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var \DateTime|null
*
*/
#[ORM\Column(name: 'date', type: 'date', nullable: true, options: ['comment' => 'période'])]
private $date;
/**
* @var string
*
*/
#[ORM\Column(name: 'titre', type: 'string', length: 255, nullable: true)]
private $titre = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'descriptifBeforeTexte', type: 'text', length: 16777215, nullable: true)]
private $descriptifBeforeTexte;
/**
* @var string
*
*/
#[ORM\Column(name: 'descriptifBeforeRTF', type: 'text', length: 16777215, nullable: true)]
private $descriptifBeforertf;
#[ORM\Column(name: 'descriptifHeaderTexte', type: 'text', length: 16777215, nullable: true)]
private $descriptifHeaderTexte;
/**
* @var string
*
*/
#[ORM\Column(name: 'descriptifHeaderRTF', type: 'text', length: 16777215, nullable: true)]
private $descriptifHeaderrtf;
/**
* @var string
*
*/
#[ORM\Column(name: 'descriptifTexte', type: 'text', length: 16777215, nullable: true)]
private $descriptifTexte;
/**
* @var string
*
*/
#[ORM\Column(name: 'descriptifRTF', type: 'text', length: 16777215, nullable: true)]
private $descriptifrtf;
/**
* @var string
*
*/
#[ORM\Column(name: 'site1', type: 'string', length: 1028, nullable: true)]
private $site1 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'site2', type: 'string', length: 1028, nullable: true)]
private $site2 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'site3', type: 'string', length: 1028, nullable: true)]
private $site3 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'siteTitre1', type: 'string', length: 255, nullable: true)]
private $sitetitre1 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'siteTitre2', type: 'string', length: 255, nullable: true)]
private $sitetitre2 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'siteTitre3', type: 'string', length: 255, nullable: true)]
private $sitetitre3 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'codeUrl1', type: 'string', length: 255, nullable: true)]
private $codeurl1 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'url1', type: 'string', length: 255, nullable: true)]
private $url1 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'codeUrl2', type: 'string', length: 255, nullable: true)]
private $codeurl2 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'url2', type: 'string', length: 255, nullable: true)]
private $url2 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'codeUrl3', type: 'string', length: 255, nullable: true)]
private $codeurl3 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'url3', type: 'string', length: 255, nullable: true)]
private $url3 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'titrePdf1', type: 'string', length: 255, nullable: true)]
private $titrepdf1 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'titrePdf2', type: 'string', length: 255, nullable: true)]
private $titrepdf2 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'titrePdf3', type: 'string', length: 255, nullable: true)]
private $titrepdf3 = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'image1', nullable: true, type: 'string', length: 255, options: ['comment' => 'format carré'])]
private $image1 = "";
/**
* @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="image1")
* @var File|null
*/
private $tmpImage1 = null;
/**
* @var string
*
*/
#[ORM\Column(nullable: true, type: 'string', length: 255, options: ['comment' => 'format carré'])]
private $image1Webp = "";
/**
* @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="image1Webp")
* @var File|null
*/
private $tmpImage1Webp = null;
/**
* @var string
*
*/
#[ORM\Column(name: 'pdf1', nullable: true, type: 'text')]
private $pdf1 = "";
/**
* @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="pdf1")
* @var File|null
*/
private $tmpPdf1 = null;
/**
* @var string
*
*/
#[ORM\Column(name: 'pdf2', nullable: true, type: 'text')]
private $pdf2 = "";
/**
* @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="pdf2")
* @var File|null
*/
private $tmpPdf2 = null;
/**
* @var string
*
*/
#[ORM\Column(name: 'pdf3', nullable: true, type: 'text')]
private $pdf3 = "";
/**
* @Vich\UploadableField(mapping="actuv2transformationdigitale", fileNameProperty="pdf3")
* @var File|null
*/
private $tmpPdf3 = null;
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
public function getId(): ?string
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getDescriptiftexte(): ?string
{
return $this->descriptifTexte;
}
public function setDescriptiftexte(string $descriptifTexte): self
{
$this->descriptifTexte = $descriptifTexte;
return $this;
}
public function getDescriptifrtf(): ?string
{
return $this->descriptifrtf;
}
public function setDescriptifrtf(string $descriptifrtf): self
{
$this->descriptifrtf = $descriptifrtf;
$descriptifTexte = str_replace(' ', ' ', $descriptifrtf);
$descriptifTexte = str_replace('<br />', ' ', $descriptifTexte);
$descriptifTexte = strip_tags($descriptifTexte);
$this->descriptifTexte = $descriptifTexte;
return $this;
}
public function getDescriptifBeforetexte(): ?string
{
return $this->descriptifBeforeTexte;
}
public function setDescriptifBeforetexte(string $descriptifBeforeTexte): self
{
$this->descriptifBeforeTexte = $descriptifBeforeTexte;
return $this;
}
public function getDescriptifBeforertf(): ?string
{
return $this->descriptifBeforertf;
}
public function setDescriptifBeforertf(string $descriptifBeforertf): self
{
$this->descriptifBeforertf = $descriptifBeforertf;
$descriptifBeforeTexte = str_replace(' ', ' ', $descriptifBeforertf);
$descriptifBeforeTexte = str_replace('<br />', ' ', $descriptifBeforeTexte);
$descriptifBeforeTexte = strip_tags($descriptifBeforeTexte);
$this->descriptifBeforeTexte = $descriptifBeforeTexte;
return $this;
}
public function getDescriptifHeadertexte(): ?string
{
return $this->descriptifHeaderTexte;
}
public function setDescriptifHeadertexte(string $descriptifHeaderTexte): self
{
$this->descriptifHeaderTexte = $descriptifHeaderTexte;
return $this;
}
public function getDescriptifHeaderrtf(): ?string
{
return $this->descriptifHeaderrtf;
}
public function setDescriptifHeaderrtf(string $descriptifHeaderrtf): self
{
$this->descriptifHeaderrtf = $descriptifHeaderrtf;
$descriptifHeaderTexte = str_replace(' ', ' ', $descriptifHeaderrtf);
$descriptifHeaderTexte = str_replace('<br />', ' ', $descriptifHeaderTexte);
$descriptifHeaderTexte = strip_tags($descriptifHeaderTexte);
$this->descriptifHeaderTexte = $descriptifHeaderTexte;
return $this;
}
public function getImage1(): ?string
{
return $this->image1;
}
public function setImage1(?string $image1): self
{
$this->image1 = is_null($image1) ? "" : $image1;
return $this;
}
public function setTmpImage1(?File $tmpImage1 = null): void
{
$this->tmpImage1 = $tmpImage1;
$this->updatedAt = new \DateTime('now');
}
public function getTmpImage1(): ?File
{
return $this->tmpImage1;
}
public function getImage1Webp(): ?string
{
return $this->image1Webp;
}
public function setImage1Webp(?string $image1Webp): self
{
$this->image1Webp = is_null($image1Webp) ? "" : $image1Webp;
return $this;
}
public function setTmpImage1Webp(?File $tmpImage1Webp = null): void
{
$this->tmpImage1Webp = $tmpImage1Webp;
$this->updatedAt = new \DateTime('now');
}
public function getTmpImage1Webp(): ?File
{
return $this->tmpImage1Webp;
}
public function getSite1(): ?string
{
return $this->site1;
}
public function setSite1(?string $site1): self
{
$this->site1 = $site1;
return $this;
}
public function getSite2(): ?string
{
return $this->site2;
}
public function setSite2(?string $site2): self
{
$this->site2 = $site2;
return $this;
}
public function getSite3(): ?string
{
return $this->site3;
}
public function setSite3(?string $site3): self
{
$this->site3 = $site3;
return $this;
}
public function getSitetitre1(): ?string
{
return $this->sitetitre1;
}
public function setSitetitre1(?string $sitetitre1): self
{
$this->sitetitre1 = $sitetitre1;
return $this;
}
public function getSitetitre2(): ?string
{
return $this->sitetitre2;
}
public function setSitetitre2(?string $sitetitre2): self
{
$this->sitetitre2 = $sitetitre2;
return $this;
}
public function getSitetitre3(): ?string
{
return $this->sitetitre3;
}
public function setSitetitre3(?string $sitetitre3): self
{
$this->sitetitre3 = $sitetitre3;
return $this;
}
public function getCodeurl1(): ?string
{
return $this->codeurl1;
}
public function setCodeurl1(?string $codeurl1): self
{
$this->codeurl1 = $codeurl1;
return $this;
}
public function getUrl1(): ?string
{
return $this->url1;
}
public function setUrl1(?string $url1): self
{
$this->url1 = $url1;
return $this;
}
public function getCodeurl2(): ?string
{
return $this->codeurl2;
}
public function setCodeurl2(?string $codeurl2): self
{
$this->codeurl2 = $codeurl2;
return $this;
}
public function getUrl2(): ?string
{
return $this->url2;
}
public function setUrl2(?string $url2): self
{
$this->url2 = $url2;
return $this;
}
public function getCodeurl3(): ?string
{
return $this->codeurl3;
}
public function setCodeurl3(?string $codeurl3): self
{
$this->codeurl3 = $codeurl3;
return $this;
}
public function getUrl3(): ?string
{
return $this->url3;
}
public function setUrl3(?string $url3): self
{
$this->url3 = $url3;
return $this;
}
public function getTitrepdf1(): ?string
{
return $this->titrepdf1;
}
public function setTitrepdf1(?string $titrepdf1): self
{
$this->titrepdf1 = $titrepdf1;
return $this;
}
public function getTitrepdf2(): ?string
{
return $this->titrepdf2;
}
public function setTitrepdf2(?string $titrepdf2): self
{
$this->titrepdf2 = $titrepdf2;
return $this;
}
public function getTitrepdf3(): ?string
{
return $this->titrepdf3;
}
public function setTitrepdf3(?string $titrepdf3): self
{
$this->titrepdf3 = $titrepdf3;
return $this;
}
public function getPdf1(): ?string
{
return $this->pdf1;
}
public function setPdf1(?string $pdf1): self
{
$this->pdf1 = is_null($pdf1) ? "" : $pdf1;
return $this;
}
public function setTmpPdf1(?File $tmpPdf1 = null): void
{
$this->tmpPdf1 = $tmpPdf1;
$this->updatedAt = new \DateTime('now');
}
public function getTmpPdf1(): ?File
{
return $this->tmpPdf1;
}
public function getPdf2(): ?string
{
return $this->pdf2;
}
public function setPdf2(?string $pdf2): self
{
$this->pdf2 = is_null($pdf2) ? "" : $pdf2;
return $this;
}
public function setTmpPdf2(?File $tmpPdf2 = null): void
{
$this->tmpPdf2 = $tmpPdf2;
$this->updatedAt = new \DateTime('now');
}
public function getTmpPdf2(): ?File
{
return $this->tmpPdf2;
}
public function getPdf3(): ?string
{
return $this->pdf3;
}
public function setPdf3(?string $pdf3): self
{
$this->pdf3 = is_null($pdf3) ? "" : $pdf3;
return $this;
}
public function setTmpPdf3(?File $tmpPdf3 = null): void
{
$this->tmpPdf3 = $tmpPdf3;
$this->updatedAt = new \DateTime('now');
}
public function getTmpPdf3(): ?File
{
return $this->tmpPdf3;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}