src/Entity/Invoice.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassInvoiceRepository::class)]
  7. class Invoice
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $customer_name null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?float $invoice_amount null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $url_invoice null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $invoice_import_date null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $reference null;
  23.     #[ORM\Column(length20)]
  24.     private ?string $currency null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $fournisseur null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $pdfName null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getCustomerName(): ?string
  34.     {
  35.         return $this->customer_name;
  36.     }
  37.     public function setCustomerName(?string $customer_name): self
  38.     {
  39.         $this->customer_name $customer_name;
  40.         return $this;
  41.     }
  42.     public function getInvoiceAmount(): ?float
  43.     {
  44.         return $this->invoice_amount;
  45.     }
  46.     public function setInvoiceAmount(?float $invoice_amount): self
  47.     {
  48.         $this->invoice_amount $invoice_amount;
  49.         return $this;
  50.     }
  51.     public function getUrlInvoice(): ?string
  52.     {
  53.         return $this->url_invoice;
  54.     }
  55.     public function setUrlInvoice(?string $url_invoice): self
  56.     {
  57.         $this->url_invoice $url_invoice;
  58.         return $this;
  59.     }
  60.     public function getInvoiceImportDate(): ?\DateTimeInterface
  61.     {
  62.         return $this->invoice_import_date;
  63.     }
  64.     public function setInvoiceImportDate(?\DateTimeInterface $invoice_import_date): self
  65.     {
  66.         $this->invoice_import_date $invoice_import_date;
  67.         return $this;
  68.     }
  69.     public function getReference(): ?string
  70.     {
  71.         return $this->reference;
  72.     }
  73.     public function setReference(string $reference): self
  74.     {
  75.         $this->reference $reference;
  76.         return $this;
  77.     }
  78.     public function getCurrency(): ?string
  79.     {
  80.         return $this->currency;
  81.     }
  82.     public function setCurrency(string $currency): self
  83.     {
  84.         $this->currency $currency;
  85.         return $this;
  86.     }
  87.     public function getFournisseur(): ?string
  88.     {
  89.         return $this->fournisseur;
  90.     }
  91.     public function setFournisseur(string $fournisseur): self
  92.     {
  93.         $this->fournisseur $fournisseur;
  94.         return $this;
  95.     }
  96.     public function getPdfName(): ?string
  97.     {
  98.         return $this->pdfName;
  99.     }
  100.     public function setPdfName(?string $pdfName): self
  101.     {
  102.         $this->pdfName $pdfName;
  103.         return $this;
  104.     }
  105. }