src/Entity/OfferteContattiClienti.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * OfferteContattiClienti
  7.  *
  8.  * @ORM\Table(name="offerte_contatti_clienti")
  9.  * @ORM\Entity(repositoryClass="App\Repository\OfferteContattiClientiRepository")
  10.  */
  11. class OfferteContattiClienti
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\Offerte", inversedBy="contattiClienti", cascade={"persist"})
  23.      */
  24.     private $offerta;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="User")
  27.      * @ORM\JoinColumn(name="utente_contatto_id", referencedColumnName="id", onDelete="SET NULL")
  28.      */
  29.     private $utenteContatto;
  30.     /**
  31.      * @var \DateTime
  32.      *
  33.      * @ORM\Column(name="data_contatto", type="datetime", nullable=true)
  34.      */
  35.     private $dataContatto;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="titolo", type="string", length=255, nullable=true)
  40.      */
  41.     private $titolo;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="messaggio", type="text", nullable=true)
  46.      */
  47.     private $messaggio;
  48.     /**
  49.      * @var bool
  50.      *
  51.      * @ORM\Column(name="contatto_da_agente_o_amministratore", type="boolean", nullable=true)
  52.      */
  53.     private $contattoDaAgenteOAmministratore;
  54.     /**
  55.      * @var \DateTime
  56.      *
  57.      * @ORM\Column(name="data_creazione", type="datetime", nullable=true)
  58.      */
  59.     private $dataCreazione;
  60.     /**
  61.      * @var \DateTime
  62.      *
  63.      * @ORM\Column(name="data_modifica", type="datetime", nullable=true)
  64.      */
  65.     private $dataModifica;
  66.     /**
  67.      * @ORM\ManyToOne(targetEntity="User")
  68.      * @ORM\JoinColumn(name="utente_modifica_id", referencedColumnName="id", onDelete="SET NULL")
  69.      */
  70.     private $utenteModifica;
  71.     public function getId(): ?int
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function setDataContatto(?\DateTimeInterface $dataContatto): static
  76.     {
  77.         $this->dataContatto = $dataContatto;
  78.         return $this;
  79.     }
  80.     public function getDataContatto(): ?\DateTimeInterface
  81.     {
  82.         return $this->dataContatto;
  83.     }
  84.     public function setTitolo(?string $titolo): static
  85.     {
  86.         $this->titolo = $titolo;
  87.         return $this;
  88.     }
  89.     public function getTitolo(): ?string
  90.     {
  91.         return $this->titolo;
  92.     }
  93.     public function setMessaggio(?string $messaggio): static
  94.     {
  95.         $this->messaggio = $messaggio;
  96.         return $this;
  97.     }
  98.     public function getMessaggio(): ?string
  99.     {
  100.         return $this->messaggio;
  101.     }
  102.     public function setContattoDaAgenteOAmministratore(?bool $contattoDaAgenteOAmministratore): static
  103.     {
  104.         $this->contattoDaAgenteOAmministratore = $contattoDaAgenteOAmministratore;
  105.         return $this;
  106.     }
  107.     public function getContattoDaAgenteOAmministratore(): ?bool
  108.     {
  109.         return $this->contattoDaAgenteOAmministratore;
  110.     }
  111.     public function setDataCreazione(?\DateTimeInterface $dataCreazione): static
  112.     {
  113.         $this->dataCreazione = $dataCreazione;
  114.         return $this;
  115.     }
  116.     public function getDataCreazione(): ?\DateTimeInterface
  117.     {
  118.         return $this->dataCreazione;
  119.     }
  120.     public function setDataModifica(?\DateTimeInterface $dataModifica): static
  121.     {
  122.         $this->dataModifica = $dataModifica;
  123.         return $this;
  124.     }
  125.     public function getDataModifica(): ?\DateTimeInterface
  126.     {
  127.         return $this->dataModifica;
  128.     }
  129.     public function setOfferta(?Offerte $offerta): static
  130.     {
  131.         $this->offerta = $offerta;
  132.         return $this;
  133.     }
  134.     public function getOfferta(): ?Offerte
  135.     {
  136.         return $this->offerta;
  137.     }
  138.     public function setUtenteContatto(?User $utenteContatto): static
  139.     {
  140.         $this->utenteContatto = $utenteContatto;
  141.         return $this;
  142.     }
  143.     public function getUtenteContatto(): ?User
  144.     {
  145.         return $this->utenteContatto;
  146.     }
  147.     public function setUtenteModifica(?User $utenteModifica): static
  148.     {
  149.         $this->utenteModifica = $utenteModifica;
  150.         return $this;
  151.     }
  152.     public function getUtenteModifica(): ?User
  153.     {
  154.         return $this->utenteModifica;
  155.     }
  156.     public function isContattoDaAgenteOAmministratore(): ?bool
  157.     {
  158.         return $this->contattoDaAgenteOAmministratore;
  159.     }
  160. }