<?php
namespace App\Entity;
use App\Repository\InvoicesRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: InvoicesRepository::class)]
class Invoices
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $invoiceDate = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dueDate = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $amount = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $paymentStatus = null;
#[ORM\ManyToOne(inversedBy: 'invoices')]
private ?PropertyList $property = null;
public function getId(): ?int
{
return $this->id;
}
public function getInvoiceDate(): ?\DateTimeInterface
{
return $this->invoiceDate;
}
public function setInvoiceDate(?\DateTimeInterface $invoiceDate): self
{
$this->invoiceDate = $invoiceDate;
return $this;
}
public function getDueDate(): ?\DateTimeInterface
{
return $this->dueDate;
}
public function setDueDate(?\DateTimeInterface $dueDate): self
{
$this->dueDate = $dueDate;
return $this;
}
public function getAmount(): ?string
{
return $this->amount;
}
public function setAmount(?string $amount): self
{
$this->amount = $amount;
return $this;
}
public function getPaymentStatus(): ?string
{
return $this->paymentStatus;
}
public function setPaymentStatus(?string $paymentStatus): self
{
$this->paymentStatus = $paymentStatus;
return $this;
}
public function getProperty(): ?PropertyList
{
return $this->property;
}
public function setProperty(?PropertyList $property): self
{
$this->property = $property;
return $this;
}
}