src/Entity/Transfer.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TransferRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TransferRepository::class)
  8.  */
  9. class Transfer
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="date_immutable")
  19.      * @Assert\NotBlank()
  20.      */
  21.     private $date;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      * @Assert\NotBlank()
  25.      */
  26.     private $customer;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $invoiceNumber;
  31.     /**
  32.      * @ORM\Column(type="date_immutable", nullable=true)
  33.      */
  34.     private $invoiceDate;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $description;
  39.     /**
  40.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  41.      */
  42.     private $amount;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getDate(): ?\DateTimeImmutable
  48.     {
  49.         return $this->date;
  50.     }
  51.     public function setDate(\DateTimeImmutable $date): self
  52.     {
  53.         $this->date $date;
  54.         return $this;
  55.     }
  56.     public function getCustomer(): ?string
  57.     {
  58.         return $this->customer;
  59.     }
  60.     public function setCustomer(string $customer): self
  61.     {
  62.         $this->customer $customer;
  63.         return $this;
  64.     }
  65.     public function getInvoiceNumber(): ?string
  66.     {
  67.         return $this->invoiceNumber;
  68.     }
  69.     public function setInvoiceNumber(?string $invoiceNumber): self
  70.     {
  71.         $this->invoiceNumber $invoiceNumber;
  72.         return $this;
  73.     }
  74.     public function getInvoiceDate(): ?\DateTimeImmutable
  75.     {
  76.         return $this->invoiceDate;
  77.     }
  78.     public function setInvoiceDate(?\DateTimeImmutable $invoiceDate): self
  79.     {
  80.         $this->invoiceDate $invoiceDate;
  81.         return $this;
  82.     }
  83.     public function getDescription(): ?string
  84.     {
  85.         return $this->description;
  86.     }
  87.     public function setDescription(?string $description): self
  88.     {
  89.         $this->description $description;
  90.         return $this;
  91.     }
  92.     public function getAmount(): ?string
  93.     {
  94.         return $this->amount;
  95.     }
  96.     public function setAmount(?string $amount): self
  97.     {
  98.         $this->amount $amount;
  99.         return $this;
  100.     }
  101. }