src/Entity/Invoices.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoicesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassInvoicesRepository::class)]
  7. class Invoices
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  14.     private ?\DateTimeInterface $invoiceDate null;
  15.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $dueDate null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $amount null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $paymentStatus null;
  21.     #[ORM\ManyToOne(inversedBy'invoices')]
  22.     private ?PropertyList $property null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getInvoiceDate(): ?\DateTimeInterface
  28.     {
  29.         return $this->invoiceDate;
  30.     }
  31.     public function setInvoiceDate(?\DateTimeInterface $invoiceDate): self
  32.     {
  33.         $this->invoiceDate $invoiceDate;
  34.         return $this;
  35.     }
  36.     public function getDueDate(): ?\DateTimeInterface
  37.     {
  38.         return $this->dueDate;
  39.     }
  40.     public function setDueDate(?\DateTimeInterface $dueDate): self
  41.     {
  42.         $this->dueDate $dueDate;
  43.         return $this;
  44.     }
  45.     public function getAmount(): ?string
  46.     {
  47.         return $this->amount;
  48.     }
  49.     public function setAmount(?string $amount): self
  50.     {
  51.         $this->amount $amount;
  52.         return $this;
  53.     }
  54.     public function getPaymentStatus(): ?string
  55.     {
  56.         return $this->paymentStatus;
  57.     }
  58.     public function setPaymentStatus(?string $paymentStatus): self
  59.     {
  60.         $this->paymentStatus $paymentStatus;
  61.         return $this;
  62.     }
  63.     public function getProperty(): ?PropertyList
  64.     {
  65.         return $this->property;
  66.     }
  67.     public function setProperty(?PropertyList $property): self
  68.     {
  69.         $this->property $property;
  70.         return $this;
  71.     }
  72. }