src/Entity/Consegna.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use App\Model\Colonna;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Consegna
  7.  *
  8.  * @ORM\Table(name="consegna")
  9.  * @ORM\Entity(repositoryClass="App\Repository\ConsegnaRepository")
  10.  */
  11. class Consegna
  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="codice", type="string", length=255)
  25.      */
  26.     private $codice;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="descrizione", type="string", length=255)
  31.      */
  32.     private $descrizione;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function setCodice(string $codice): static
  38.     {
  39.         $this->codice $codice;
  40.         return $this;
  41.     }
  42.     public function getCodice(): ?string
  43.     {
  44.         return $this->codice;
  45.     }
  46.     public function setDescrizione(string $descrizione): static
  47.     {
  48.         $this->descrizione $descrizione;
  49.         return $this;
  50.     }
  51.     public function getDescrizione(): ?string
  52.     {
  53.         return $this->descrizione;
  54.     }
  55. }