src/Entity/OfferteAllegati.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * OfferteAllegati
  7.  *
  8.  * @ORM\Table(name="offerte_allegati")
  9.  * @ORM\Entity(repositoryClass="App\Repository\OfferteAllegatiRepository")
  10.  */
  11. class OfferteAllegati
  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="nome", type="string", length=255, nullable=true)
  25.      */
  26.     private $nome;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="identificativo", type="string", length=255)
  31.      */
  32.     private $identificativo;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="file", type="blob")
  37.      */
  38.     private $file;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="tipo_file", type="string", length=255)
  43.      */
  44.     private $tipoFile;
  45.     /**
  46.      * @var \DateTime
  47.      *
  48.      * @ORM\Column(name="data_caricamento", type="datetime")
  49.      */
  50.     private $dataCaricamento;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity="User")
  53.      * @ORM\JoinColumn(name="utente_id", referencedColumnName="id", onDelete="CASCADE")
  54.      */
  55.     private $utente;
  56.     /**
  57.      * @ORM\ManyToOne(targetEntity="App\Entity\Offerte", inversedBy="allegati", cascade={"persist"})
  58.      */
  59.     private $offerta;
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function setNome(?string $nome): static
  65.     {
  66.         $this->nome = $nome;
  67.         return $this;
  68.     }
  69.     public function getNome(): ?string
  70.     {
  71.         return $this->nome;
  72.     }
  73.     public function setFile($file): static
  74.     {
  75.         $this->file = $file;
  76.         return $this;
  77.     }
  78.     public function getFile()
  79.     {
  80.         return $this->file;
  81.     }
  82.     public function setTipoFile(string $tipoFile): static
  83.     {
  84.         $this->tipoFile = $tipoFile;
  85.         return $this;
  86.     }
  87.     public function getTipoFile(): ?string
  88.     {
  89.         return $this->tipoFile;
  90.     }
  91.     public function setDataCaricamento(\DateTimeInterface $dataCaricamento): static
  92.     {
  93.         $this->dataCaricamento = $dataCaricamento;
  94.         return $this;
  95.     }
  96.     public function getDataCaricamento(): ?\DateTimeInterface
  97.     {
  98.         return $this->dataCaricamento;
  99.     }
  100.     public function setUtente(?User $utente): static
  101.     {
  102.         $this->utente = $utente;
  103.         return $this;
  104.     }
  105.     public function getUtente(): ?User
  106.     {
  107.         return $this->utente;
  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. }