src/Entity/MddPdfData.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\MddPdfDataRepository")
  7.  */
  8. class MddPdfData
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=1024, nullable=true)
  18.      */
  19.     private $imgURL;
  20.     /**
  21.      * @Assert\NotBlank
  22.      * @Assert\Regex("/^\d{1,2}\/\d{1,2}\/(\d{4})$/")
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $compilationDate;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $autorizzo;
  30.     /**
  31.      * @Assert\NotBlank
  32.      * @ORM\Column(type="string", length=1024)
  33.      */
  34.     private $nomeCognome;
  35.     /**
  36.      * @Assert\NotBlank
  37.      * @ORM\Column(type="string", length=1024)
  38.      */
  39.     private $qualitaDi;
  40.     /**
  41.      * @Assert\NotBlank
  42.      * @Assert\Email
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $sender;
  46.     /**
  47.      * @Assert\NotBlank
  48.      * @Assert\Email
  49.      * @ORM\Column(type="string", length=255)
  50.      */
  51.     private $accEmail;
  52.     /**
  53.      * @Assert\Uuid
  54.      * @ORM\Column(type="string", length=255)
  55.      */
  56.     private $appClientTrackUuid;
  57.     /**
  58.      * @ORM\OneToOne(targetEntity="App\Entity\MddSentEmail", cascade={"persist", "remove"})
  59.      * @ORM\JoinColumn(name="sent_email_id", referencedColumnName="id", onDelete="CASCADE", nullable=true)
  60.      */
  61.     private $sentEmail;
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getImgURL(): ?string
  67.     {
  68.         return $this->imgURL;
  69.     }
  70.     public function setImgURL(?string $imgURL): self
  71.     {
  72.         $this->imgURL $imgURL;
  73.         return $this;
  74.     }
  75.     public function getCompilationDate(): ?string
  76.     {
  77.         return $this->compilationDate;
  78.     }
  79.     public function setCompilationDate(string $compilationDate): self
  80.     {
  81.         $this->compilationDate $compilationDate;
  82.         return $this;
  83.     }
  84.     public function getAutorizzo(): ?string
  85.     {
  86.         return $this->autorizzo;
  87.     }
  88.     public function setAutorizzo(?string $autorizzo): self
  89.     {
  90.         $this->autorizzo $autorizzo;
  91.         return $this;
  92.     }
  93.     public function getNomeCognome(): ?string
  94.     {
  95.         return $this->nomeCognome;
  96.     }
  97.     public function setNomeCognome(string $nomeCognome): self
  98.     {
  99.         $this->nomeCognome $nomeCognome;
  100.         return $this;
  101.     }
  102.     public function getQualitaDi(): ?string
  103.     {
  104.         return $this->qualitaDi;
  105.     }
  106.     public function setQualitaDi(string $qualitaDi): self
  107.     {
  108.         $this->qualitaDi $qualitaDi;
  109.         return $this;
  110.     }
  111.     public function getSender(): ?string
  112.     {
  113.         return $this->sender;
  114.     }
  115.     public function setSender(string $sender): self
  116.     {
  117.         $this->sender $sender;
  118.         return $this;
  119.     }
  120.     public function getAccEmail(): ?string
  121.     {
  122.         return $this->accEmail;
  123.     }
  124.     public function setAccEmail(string $accEmail): self
  125.     {
  126.         $this->accEmail $accEmail;
  127.         return $this;
  128.     }
  129.     public function getAppClientTrackUuid(): ?string
  130.     {
  131.         return $this->appClientTrackUuid;
  132.     }
  133.     public function setAppClientTrackUuid(string $appClientTrackUuid): self
  134.     {
  135.         $this->appClientTrackUuid $appClientTrackUuid;
  136.         return $this;
  137.     }
  138.     public function getSentEmail(): ?MddSentEmail
  139.     {
  140.         return $this->sentEmail;
  141.     }
  142.     public function setSentEmail(?MddSentEmail $sentEmail): self
  143.     {
  144.         $this->sentEmail $sentEmail;
  145.         return $this;
  146.     }
  147. }