src/Entity/ModalitaSpedizione.php line 15

  1. <?php
  2. namespace App\Entity;
  3. use App\Model\Colonna;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * ModalitaSpedizione
  8.  *
  9.  * @ORM\Table(name="modalita_spedizione")
  10.  * @ORM\Entity(repositoryClass="App\Repository\ModalitaSpedizioneRepository")
  11.  */
  12. class ModalitaSpedizione
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="nome", type="string", length=255)
  26.      */
  27.     private $nome;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="codice_esportazione", type="string", length=20)
  32.      */
  33.     private $codiceEsportazione;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="porto", type="string", length=255, nullable=true)
  38.      */
  39.     private $porto;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="descrizione_porto", type="string", length=255, nullable=true)
  44.      */
  45.     private $descrizionePorto;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="codice_esportazione_porto", type="string", length=20, nullable=true)
  50.      */
  51.     private $codiceEsportazionePorto;
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="testo_descrittivo", type="string", length=255, nullable=true)
  56.      */
  57.     private $testoDescrittivo;
  58.     /**
  59.      * @var string
  60.      *
  61.      * @ORM\Column(name="immagine", type="string", length=255, nullable=true)
  62.      */
  63.     private $immagine;
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="prezzo", type="decimal", precision=18, scale=2, nullable=true)
  68.      */
  69.     private $prezzo;
  70.     /**
  71.      * @var string
  72.      *
  73.      * @ORM\Column(name="incremento", type="decimal", precision=18, scale=2, nullable=true)
  74.      */
  75.     private $incremento;
  76.     /**
  77.      * @var bool
  78.      *
  79.      * @ORM\Column(name="attivo", type="boolean")
  80.      */
  81.     private $attivo;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity="User")
  84.      * @ORM\JoinColumn(name="utente_modifica_id", referencedColumnName="id", onDelete="SET NULL")
  85.      */
  86.     private $utenteModifica;
  87.     /**
  88.      * @ORM\ManyToOne(targetEntity="App\Entity\Corriere")
  89.      * @ORM\JoinColumn(name="corriere_id", referencedColumnName="id", onDelete="SET NULL")
  90.      */
  91.     private $corriere;
  92.     /**
  93.      * @var \DateTime
  94.      *
  95.      * @ORM\Column(name="data_creazione", type="datetime")
  96.      */
  97.     private $dataCreazione;
  98.     /**
  99.      * @var \DateTime
  100.      *
  101.      * @ORM\Column(name="data_modifica", type="datetime")
  102.      */
  103.     private $dataModifica;
  104.     public function getId(): ?int
  105.     {
  106.         return $this->id;
  107.     }
  108.     public function setNome(string $nome): static
  109.     {
  110.         $this->nome $nome;
  111.         return $this;
  112.     }
  113.     public function getNome(): ?string
  114.     {
  115.         return $this->nome;
  116.     }
  117.     public function setTestoDescrittivo(?string $testoDescrittivo): static
  118.     {
  119.         $this->testoDescrittivo $testoDescrittivo;
  120.         return $this;
  121.     }
  122.     public function getTestoDescrittivo(): ?string
  123.     {
  124.         return $this->testoDescrittivo;
  125.     }
  126.     public function setImmagine(?string $immagine): static
  127.     {
  128.         $this->immagine $immagine;
  129.         return $this;
  130.     }
  131.     public function getImmagine(): ?string
  132.     {
  133.         return $this->immagine;
  134.     }
  135.     public function setPrezzo(?string $prezzo): static
  136.     {
  137.         $this->prezzo $prezzo;
  138.         return $this;
  139.     }
  140.     public function getPrezzo(): ?string
  141.     {
  142.         return $this->prezzo;
  143.     }
  144.     public function setIncremento(?string $incremento): static
  145.     {
  146.         $this->incremento $incremento;
  147.         return $this;
  148.     }
  149.     public function getIncremento(): ?string
  150.     {
  151.         return $this->incremento;
  152.     }
  153.     public function setAttivo(bool $attivo): static
  154.     {
  155.         $this->attivo $attivo;
  156.         return $this;
  157.     }
  158.     public function getAttivo(): ?bool
  159.     {
  160.         return $this->attivo;
  161.     }
  162.     public function setDataCreazione(\DateTimeInterface $dataCreazione): static
  163.     {
  164.         $this->dataCreazione $dataCreazione;
  165.         return $this;
  166.     }
  167.     public function getDataCreazione(): ?\DateTimeInterface
  168.     {
  169.         return $this->dataCreazione;
  170.     }
  171.     public function setDataModifica(\DateTimeInterface $dataModifica): static
  172.     {
  173.         $this->dataModifica $dataModifica;
  174.         return $this;
  175.     }
  176.     public function getDataModifica(): ?\DateTimeInterface
  177.     {
  178.         return $this->dataModifica;
  179.     }
  180.     public function setUtenteModifica(?User $utenteModifica): static
  181.     {
  182.         $this->utenteModifica $utenteModifica;
  183.         return $this;
  184.     }
  185.     public function getUtenteModifica(): ?User
  186.     {
  187.         return $this->utenteModifica;
  188.     }
  189.     public function setCodiceEsportazione(string $codiceEsportazione): static
  190.     {
  191.         $this->codiceEsportazione $codiceEsportazione;
  192.         return $this;
  193.     }
  194.     public function getCodiceEsportazione(): ?string
  195.     {
  196.         return $this->codiceEsportazione;
  197.     }
  198.     public function setPorto(?string $porto): static
  199.     {
  200.         $this->porto $porto;
  201.         return $this;
  202.     }
  203.     public function getPorto(): ?string
  204.     {
  205.         return $this->porto;
  206.     }
  207.     public function setDescrizionePorto(?string $descrizionePorto): static
  208.     {
  209.         $this->descrizionePorto $descrizionePorto;
  210.         return $this;
  211.     }
  212.     public function getDescrizionePorto(): ?string
  213.     {
  214.         return $this->descrizionePorto;
  215.     }
  216.     public function setCodiceEsportazionePorto(?string $codiceEsportazionePorto): static
  217.     {
  218.         $this->codiceEsportazionePorto $codiceEsportazionePorto;
  219.         return $this;
  220.     }
  221.     public function getCodiceEsportazionePorto(): ?string
  222.     {
  223.         return $this->codiceEsportazionePorto;
  224.     }
  225.     public function setCorriere(?Corriere $corriere): static
  226.     {
  227.         $this->corriere $corriere;
  228.         return $this;
  229.     }
  230.     public function getCorriere(): ?Corriere
  231.     {
  232.         return $this->corriere;
  233.     }
  234.     public function isAttivo(): ?bool
  235.     {
  236.         return $this->attivo;
  237.     }
  238. }