src/Entity/DocumentoScadenza.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Ramsey\Uuid\UuidInterface;
  5. use Ramsey\Uuid\Doctrine\UuidGenerator;
  6. /**
  7.  * @ORM\Entity()
  8.  */
  9. class DocumentoScadenza
  10. {
  11.     /**
  12.      * @var UuidInterface
  13.      *
  14.      * @ORM\Id()
  15.      * @ORM\Column(type="uuid", unique=true)
  16.      * @ORM\GeneratedValue(strategy="CUSTOM")
  17.      * @ORM\CustomIdGenerator(class=UuidGenerator::class)
  18.      */
  19.     private $uid;
  20.     /**
  21.      * @var \DateTime
  22.      *
  23.      * @ORM\Column(type="date")
  24.      */
  25.     private $dueDate;
  26.     /**
  27.      * Importo del pagamento
  28.      *
  29.      * @var double
  30.      *
  31.      * @ORM\Column(type="float")
  32.      */
  33.     private $amount;
  34.     /**
  35.      * Conto di saldo = ['not' o 'rev' o il nome del conto] ('not' indica che non è stato saldato, 'rev' che è stato stornato)
  36.      *
  37.      * @var string
  38.      *
  39.      * @ORM\Column(type="string")
  40.      */
  41.     private $method;
  42.     /**
  43.      * Data del saldo dell'importo indicato (se avvenuto)
  44.      *
  45.      * @var \DateTime|null
  46.      *
  47.      * @ORM\Column(type="date", nullable=true)
  48.      */
  49.     private $paymentDate;
  50.     /**
  51.      * @var Documento
  52.      *
  53.      * @ORM\ManyToOne(targetEntity=Documento::class, inversedBy="dueDates")
  54.      * @ORM\JoinColumn(referencedColumnName="uid")
  55.      */
  56.     private $document;
  57.     public function getUid(): UuidInterface
  58.     {
  59.         return $this->uid;
  60.     }
  61.     public function setUid(UuidInterface $uid): DocumentoScadenza
  62.     {
  63.         $this->uid $uid;
  64.         return $this;
  65.     }
  66.     public function getDueDate():? \DateTime
  67.     {
  68.         return $this->dueDate;
  69.     }
  70.     public function setDueDate(\DateTime $dueDate): DocumentoScadenza
  71.     {
  72.         $this->dueDate $dueDate;
  73.         return $this;
  74.     }
  75.     public function getAmount(): float
  76.     {
  77.         return $this->amount;
  78.     }
  79.     public function setAmount(float $amount): DocumentoScadenza
  80.     {
  81.         $this->amount $amount;
  82.         return $this;
  83.     }
  84.     public function getMethod(): string
  85.     {
  86.         return $this->method;
  87.     }
  88.     public function setMethod(string $method): DocumentoScadenza
  89.     {
  90.         $this->method $method;
  91.         return $this;
  92.     }
  93.     public function getPaymentDate(): ?\DateTime
  94.     {
  95.         return $this->paymentDate;
  96.     }
  97.     public function setPaymentDate(?\DateTime $paymentDate): DocumentoScadenza
  98.     {
  99.         $this->paymentDate $paymentDate;
  100.         return $this;
  101.     }
  102.     public function getDocument():? Documento
  103.     {
  104.         return $this->document;
  105.     }
  106.     public function setDocument(Documento $document): DocumentoScadenza
  107.     {
  108.         $this->document $document;
  109.         return $this;
  110.     }
  111. }