<?php
namespace App\Entity;
use App\Repository\BillsRepository;
use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BillsRepository::class)
* @Auditable()
*/
class Bills
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Folder::class, inversedBy="bill", fetch="EXTRA_LAZY")
* @ORM\JoinColumn(nullable=false)
*/
private $folder;
/**
* @ORM\Column(type="float")
*/
private $totalAmount;
/**
* @ORM\Column(type="text")
*/
private $htmlContent;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $paymentMode;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=BankAccount::class)
*/
private $bankAccount;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $paymentDate;
/**
* @ORM\Column(type="datetime")
*/
private $dateCreate;
/**
* @ORM\ManyToOne(targetEntity=Users::class)
* @ORM\JoinColumn(nullable=false)
*/
private $userCreate;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalAmountCollected;
/**
* @ORM\ManyToOne(targetEntity=Currency::class)
*/
private $currency;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $paymentProof;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $paymentReference;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $paymentProofFileType;
public function getId(): ?int
{
return $this->id;
}
public function getFolder(): ?Folder
{
return $this->folder;
}
public function setFolder(?Folder $folder): self
{
$this->folder = $folder;
return $this;
}
public function getTotalAmount(): ?float
{
return $this->totalAmount;
}
public function setTotalAmount(float $totalAmount): self
{
$this->totalAmount = $totalAmount;
return $this;
}
public function getHtmlContent(): ?string
{
return $this->htmlContent;
}
public function setHtmlContent(string $htmlContent): self
{
$this->htmlContent = $htmlContent;
return $this;
}
public function getPaymentMode(): ?string
{
return $this->paymentMode;
}
public function setPaymentMode(?string $paymentMode): self
{
$this->paymentMode = $paymentMode;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(?int $status): self
{
$this->status = $status;
return $this;
}
public function getBankAccount(): ?BankAccount
{
return $this->bankAccount;
}
public function setBankAccount(?BankAccount $bankAccount): self
{
$this->bankAccount = $bankAccount;
return $this;
}
public function getPaymentDate(): ?\DateTimeInterface
{
return $this->paymentDate;
}
public function setPaymentDate(?\DateTimeInterface $paymentDate): self
{
$this->paymentDate = $paymentDate;
return $this;
}
public function getDateCreate(): ?\DateTimeInterface
{
return $this->dateCreate;
}
public function setDateCreate(\DateTimeInterface $dateCreate): self
{
$this->dateCreate = $dateCreate;
return $this;
}
public function getUserCreate(): ?Users
{
return $this->userCreate;
}
public function setUserCreate(?Users $userCreate): self
{
$this->userCreate = $userCreate;
return $this;
}
public function getTotalAmountCollected(): ?float
{
return $this->totalAmountCollected;
}
public function setTotalAmountCollected(?float $totalAmountCollected): self
{
$this->totalAmountCollected = $totalAmountCollected;
return $this;
}
public function getCurrency(): ?Currency
{
return $this->currency;
}
public function setCurrency(?Currency $currency): self
{
$this->currency = $currency;
return $this;
}
public function getPaymentProof(): ?string
{
return $this->paymentProof;
}
public function setPaymentProof(?string $paymentProof): self
{
$this->paymentProof = $paymentProof;
return $this;
}
public function getPaymentReference(): ?string
{
return $this->paymentReference;
}
public function setPaymentReference(?string $paymentReference): self
{
$this->paymentReference = $paymentReference;
return $this;
}
public function getPaymentProofFileType(): ?string
{
return $this->paymentProofFileType;
}
public function setPaymentProofFileType(?string $paymentProofFileType): self
{
$this->paymentProofFileType = $paymentProofFileType;
return $this;
}
}