src/Entity/OfferteRegistroEventi.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * OfferteRegistroEventi
  7.  *
  8.  * @ORM\Table(name="offerte_registro_eventi")
  9.  * @ORM\Entity(repositoryClass="App\Repository\OfferteRegistroEventiRepository")
  10.  */
  11. class OfferteRegistroEventi
  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.      * @var string
  23.      *
  24.      * @ORM\Column(name="titolo", type="text", nullable=true)
  25.      */
  26.     private $titolo;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="descrizione", type="text", nullable=true)
  31.      */
  32.     private $descrizione;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="identificativo", type="string", length=255)
  37.      */
  38.     private $identificativo;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="User")
  41.      * @ORM\JoinColumn(name="utente_id", referencedColumnName="id", onDelete="CASCADE")
  42.      */
  43.     private $utente;
  44.     /**
  45.      * @var \DateTime
  46.      *
  47.      * @ORM\Column(name="data_creazione", type="datetime")
  48.      */
  49.     private $dataCreazione;
  50.     /**
  51.      * @var \DateTime
  52.      *
  53.      * @ORM\Column(name="data_modifica", type="datetime")
  54.      */
  55.     private $dataModifica;
  56.     /**
  57.      * @ORM\ManyToOne(targetEntity="App\Entity\Offerte", inversedBy="registroEventi", cascade={"persist"})
  58.      */
  59.     private $offerta;
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function setTitolo(?string $titolo): static
  65.     {
  66.         $this->titolo = $titolo;
  67.         return $this;
  68.     }
  69.     public function getTitolo(): ?string
  70.     {
  71.         return $this->titolo;
  72.     }
  73.     public function setDescrizione(?string $descrizione): static
  74.     {
  75.         $this->descrizione = $descrizione;
  76.         return $this;
  77.     }
  78.     public function getDescrizione(): ?string
  79.     {
  80.         return $this->descrizione;
  81.     }
  82.     public function setUtente(?User $utente): static
  83.     {
  84.         $this->utente = $utente;
  85.         return $this;
  86.     }
  87.     public function getUtente(): ?User
  88.     {
  89.         return $this->utente;
  90.     }
  91.     public function setDataCreazione(\DateTimeInterface $dataCreazione): static
  92.     {
  93.         $this->dataCreazione = $dataCreazione;
  94.         return $this;
  95.     }
  96.     public function getDataCreazione(): ?\DateTimeInterface
  97.     {
  98.         return $this->dataCreazione;
  99.     }
  100.     public function setDataModifica(\DateTimeInterface $dataModifica): static
  101.     {
  102.         $this->dataModifica = $dataModifica;
  103.         return $this;
  104.     }
  105.     public function getDataModifica(): ?\DateTimeInterface
  106.     {
  107.         return $this->dataModifica;
  108.     }
  109.     public function setOfferta(?Offerte $offerta): static
  110.     {
  111.         $this->offerta = $offerta;
  112.         return $this;
  113.     }
  114.     public function getOfferta(): ?Offerte
  115.     {
  116.         return $this->offerta;
  117.     }
  118.     public function setIdentificativo(string $identificativo): static
  119.     {
  120.         $this->identificativo = $identificativo;
  121.         return $this;
  122.     }
  123.     public function getIdentificativo(): ?string
  124.     {
  125.         return $this->identificativo;
  126.     }
  127. }