src/Entity/Bills.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BillsRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=BillsRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Bills
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.       * @ORM\ManyToOne(targetEntity=Folder::class, inversedBy="bill", fetch="EXTRA_LAZY")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $folder;
  23.     /**
  24.      * @ORM\Column(type="float")
  25.      */
  26.     private $totalAmount;
  27.     /**
  28.      * @ORM\Column(type="text")
  29.      */
  30.     private $htmlContent;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $paymentMode;
  35.     /**
  36.      * @ORM\Column(type="integer", nullable=true)
  37.      */
  38.     private $status;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity=BankAccount::class)
  41.      */
  42.     private $bankAccount;
  43.     /**
  44.      * @ORM\Column(type="date", nullable=true)
  45.      */
  46.     private $paymentDate;
  47.     /**
  48.      * @ORM\Column(type="datetime")
  49.      */
  50.     private $dateCreate;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity=Users::class)
  53.      * @ORM\JoinColumn(nullable=false)
  54.      */
  55.     private $userCreate;
  56.     /**
  57.      * @ORM\Column(type="float", nullable=true)
  58.      */
  59.     private $totalAmountCollected;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=Currency::class)
  62.      */
  63.     private $currency;
  64.     /**
  65.      * @ORM\Column(type="text", nullable=true)
  66.      */
  67.     private $paymentProof;
  68.     /**
  69.      * @ORM\Column(type="text", nullable=true)
  70.      */
  71.     private $paymentReference;
  72.     /**
  73.      * @ORM\Column(type="string", length=255, nullable=true)
  74.      */
  75.     private $paymentProofFileType;
  76.     public function getId(): ?int
  77.     {
  78.         return $this->id;
  79.     }
  80.     public function getFolder(): ?Folder
  81.     {
  82.         return $this->folder;
  83.     }
  84.     public function setFolder(?Folder $folder): self
  85.     {
  86.         $this->folder $folder;
  87.         return $this;
  88.     }
  89.     public function getTotalAmount(): ?float
  90.     {
  91.         return $this->totalAmount;
  92.     }
  93.     public function setTotalAmount(float $totalAmount): self
  94.     {
  95.         $this->totalAmount $totalAmount;
  96.         return $this;
  97.     }
  98.     public function getHtmlContent(): ?string
  99.     {
  100.         return $this->htmlContent;
  101.     }
  102.     public function setHtmlContent(string $htmlContent): self
  103.     {
  104.         $this->htmlContent $htmlContent;
  105.         return $this;
  106.     }
  107.     public function getPaymentMode(): ?string
  108.     {
  109.         return $this->paymentMode;
  110.     }
  111.     public function setPaymentMode(?string $paymentMode): self
  112.     {
  113.         $this->paymentMode $paymentMode;
  114.         return $this;
  115.     }
  116.     public function getStatus(): ?int
  117.     {
  118.         return $this->status;
  119.     }
  120.     public function setStatus(?int $status): self
  121.     {
  122.         $this->status $status;
  123.         return $this;
  124.     }
  125.     public function getBankAccount(): ?BankAccount
  126.     {
  127.         return $this->bankAccount;
  128.     }
  129.     public function setBankAccount(?BankAccount $bankAccount): self
  130.     {
  131.         $this->bankAccount $bankAccount;
  132.         return $this;
  133.     }
  134.     public function getPaymentDate(): ?\DateTimeInterface
  135.     {
  136.         return $this->paymentDate;
  137.     }
  138.     public function setPaymentDate(?\DateTimeInterface $paymentDate): self
  139.     {
  140.         $this->paymentDate $paymentDate;
  141.         return $this;
  142.     }
  143.     public function getDateCreate(): ?\DateTimeInterface
  144.     {
  145.         return $this->dateCreate;
  146.     }
  147.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  148.     {
  149.         $this->dateCreate $dateCreate;
  150.         return $this;
  151.     }
  152.     public function getUserCreate(): ?Users
  153.     {
  154.         return $this->userCreate;
  155.     }
  156.     public function setUserCreate(?Users $userCreate): self
  157.     {
  158.         $this->userCreate $userCreate;
  159.         return $this;
  160.     }
  161.     public function getTotalAmountCollected(): ?float
  162.     {
  163.         return $this->totalAmountCollected;
  164.     }
  165.     public function setTotalAmountCollected(?float $totalAmountCollected): self
  166.     {
  167.         $this->totalAmountCollected $totalAmountCollected;
  168.         return $this;
  169.     }
  170.     public function getCurrency(): ?Currency
  171.     {
  172.         return $this->currency;
  173.     }
  174.     public function setCurrency(?Currency $currency): self
  175.     {
  176.         $this->currency $currency;
  177.         return $this;
  178.     }
  179.     public function getPaymentProof(): ?string
  180.     {
  181.         return $this->paymentProof;
  182.     }
  183.     public function setPaymentProof(?string $paymentProof): self
  184.     {
  185.         $this->paymentProof $paymentProof;
  186.         return $this;
  187.     }
  188.     public function getPaymentReference(): ?string
  189.     {
  190.         return $this->paymentReference;
  191.     }
  192.     public function setPaymentReference(?string $paymentReference): self
  193.     {
  194.         $this->paymentReference $paymentReference;
  195.         return $this;
  196.     }
  197.     public function getPaymentProofFileType(): ?string
  198.     {
  199.         return $this->paymentProofFileType;
  200.     }
  201.     public function setPaymentProofFileType(?string $paymentProofFileType): self
  202.     {
  203.         $this->paymentProofFileType $paymentProofFileType;
  204.         return $this;
  205.     }
  206. }