<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\MddPdfDataRepository")
*/
class MddPdfData
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=1024, nullable=true)
*/
private $imgURL;
/**
* @Assert\NotBlank
* @Assert\Regex("/^\d{1,2}\/\d{1,2}\/(\d{4})$/")
* @ORM\Column(type="string", length=255)
*/
private $compilationDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $autorizzo;
/**
* @Assert\NotBlank
* @ORM\Column(type="string", length=1024)
*/
private $nomeCognome;
/**
* @Assert\NotBlank
* @ORM\Column(type="string", length=1024)
*/
private $qualitaDi;
/**
* @Assert\NotBlank
* @Assert\Email
* @ORM\Column(type="string", length=255)
*/
private $sender;
/**
* @Assert\NotBlank
* @Assert\Email
* @ORM\Column(type="string", length=255)
*/
private $accEmail;
/**
* @Assert\Uuid
* @ORM\Column(type="string", length=255)
*/
private $appClientTrackUuid;
/**
* @ORM\OneToOne(targetEntity="App\Entity\MddSentEmail", cascade={"persist", "remove"})
* @ORM\JoinColumn(name="sent_email_id", referencedColumnName="id", onDelete="CASCADE", nullable=true)
*/
private $sentEmail;
public function getId(): ?int
{
return $this->id;
}
public function getImgURL(): ?string
{
return $this->imgURL;
}
public function setImgURL(?string $imgURL): self
{
$this->imgURL = $imgURL;
return $this;
}
public function getCompilationDate(): ?string
{
return $this->compilationDate;
}
public function setCompilationDate(string $compilationDate): self
{
$this->compilationDate = $compilationDate;
return $this;
}
public function getAutorizzo(): ?string
{
return $this->autorizzo;
}
public function setAutorizzo(?string $autorizzo): self
{
$this->autorizzo = $autorizzo;
return $this;
}
public function getNomeCognome(): ?string
{
return $this->nomeCognome;
}
public function setNomeCognome(string $nomeCognome): self
{
$this->nomeCognome = $nomeCognome;
return $this;
}
public function getQualitaDi(): ?string
{
return $this->qualitaDi;
}
public function setQualitaDi(string $qualitaDi): self
{
$this->qualitaDi = $qualitaDi;
return $this;
}
public function getSender(): ?string
{
return $this->sender;
}
public function setSender(string $sender): self
{
$this->sender = $sender;
return $this;
}
public function getAccEmail(): ?string
{
return $this->accEmail;
}
public function setAccEmail(string $accEmail): self
{
$this->accEmail = $accEmail;
return $this;
}
public function getAppClientTrackUuid(): ?string
{
return $this->appClientTrackUuid;
}
public function setAppClientTrackUuid(string $appClientTrackUuid): self
{
$this->appClientTrackUuid = $appClientTrackUuid;
return $this;
}
public function getSentEmail(): ?MddSentEmail
{
return $this->sentEmail;
}
public function setSentEmail(?MddSentEmail $sentEmail): self
{
$this->sentEmail = $sentEmail;
return $this;
}
}