<?php
namespace App\Entity;
use App\Repository\InterestPaidoffRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=InterestPaidoffRepository::class)
*/
class InterestPaidoff
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Order::class, inversedBy="interestPaidoffs")
* @ORM\JoinColumn(nullable=false)
*/
private $orderEntity;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dateFrom;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dateTo;
/**
* @ORM\Column(type="integer")
*/
private $days;
/**
* @ORM\Column(type="float")
*/
private $interestTotal;
/**
* @ORM\Column(type="float")
*/
private $interestInvestor;
/**
* @ORM\Column(type="float")
*/
private $interestTax;
/**
* @ORM\Column(type="datetime")
*/
private $created;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="interestPaidoffs")
*/
private $createdBy;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $changed;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $changedBy;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ip;
/**
* @ORM\Column(type="string", length=255)
*/
private $orderNumber;
/**
* @ORM\Column(type="string", length=255)
*/
private $orderFullName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $orderBirthdate;
/**
* @ORM\Column(type="string", length=255)
*/
private $bankAccount;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $paidDatetime;
/**
* @ORM\Column(type="boolean")
*/
private $deleted = false;
/**
* @ORM\ManyToOne(targetEntity=InterestPaidoffReport::class, inversedBy="interestPaidoffs")
* @ORM\JoinColumn(nullable=false)
*/
private $interestPaidoffReport;
/**
* @ORM\Column(type="float")
*/
private $orderProductInterest;
/**
* @ORM\Column(type="float")
*/
private $orderTotalPrice;
/**
* @ORM\Column(type="string", length=8, nullable=true)
*/
private $orderPersonType;
public function getId(): ?int
{
return $this->id;
}
public function getOrderEntity(): ?Order
{
return $this->orderEntity;
}
public function setOrderEntity(?Order $orderEntity): self
{
$this->orderEntity = $orderEntity;
return $this;
}
public function getDateFrom(): ?\DateTimeInterface
{
return $this->dateFrom;
}
public function setDateFrom(?\DateTimeInterface $dateFrom): self
{
$this->dateFrom = $dateFrom;
return $this;
}
public function getDateTo(): ?\DateTimeInterface
{
return $this->dateTo;
}
public function setDateTo(?\DateTimeInterface $dateTo): self
{
$this->dateTo = $dateTo;
return $this;
}
public function getDays(): ?int
{
return $this->days;
}
public function setDays(int $days): self
{
$this->days = $days;
return $this;
}
public function getInterestTotal(): ?float
{
return $this->interestTotal;
}
public function setInterestTotal(float $interestTotal): self
{
$this->interestTotal = $interestTotal;
return $this;
}
public function getInterestInvestor(): ?float
{
return $this->interestInvestor;
}
public function setInterestInvestor(float $interestInvestor): self
{
$this->interestInvestor = $interestInvestor;
return $this;
}
public function getInterestTax(): ?float
{
return $this->interestTax;
}
public function setInterestTax(float $interestTax): self
{
$this->interestTax = $interestTax;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getChanged(): ?\DateTimeInterface
{
return $this->changed;
}
public function setChanged(?\DateTimeInterface $changed): self
{
$this->changed = $changed;
return $this;
}
public function getChangedBy(): ?User
{
return $this->changedBy;
}
public function setChangedBy(?User $changedBy): self
{
$this->changedBy = $changedBy;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(?string $ip): self
{
$this->ip = $ip;
return $this;
}
public function getOrderNumber(): ?string
{
return $this->orderNumber;
}
public function setOrderNumber(string $orderNumber): self
{
$this->orderNumber = $orderNumber;
return $this;
}
public function getOrderFullName(): ?string
{
return $this->orderFullName;
}
public function setOrderFullName(string $orderFullName): self
{
$this->orderFullName = $orderFullName;
return $this;
}
public function getOrderBirthdate(): ?string
{
return $this->orderBirthdate;
}
public function setOrderBirthdate(?string $orderBirthdate): self
{
$this->orderBirthdate = $orderBirthdate;
return $this;
}
public function getBankAccount(): ?string
{
return $this->bankAccount;
}
public function setBankAccount(string $bankAccount): self
{
$this->bankAccount = $bankAccount;
return $this;
}
public function getPaidDatetime(): ?\DateTimeInterface
{
return $this->paidDatetime;
}
public function setPaidDatetime(?\DateTimeInterface $paidDatetime): self
{
$this->paidDatetime = $paidDatetime;
return $this;
}
public function isDeleted(): ?bool
{
return $this->deleted;
}
public function setDeleted(bool $deleted): self
{
$this->deleted = $deleted;
return $this;
}
public function getInterestPaidoffReport(): ?InterestPaidoffReport
{
return $this->interestPaidoffReport;
}
public function setInterestPaidoffReport(?InterestPaidoffReport $interestPaidoffReport): self
{
$this->interestPaidoffReport = $interestPaidoffReport;
return $this;
}
public function getOrderProductInterest(): ?float
{
return $this->orderProductInterest;
}
public function setOrderProductInterest(?float $orderProductInterest): self
{
$this->orderProductInterest = (float)$orderProductInterest;
return $this;
}
public function getOrderTotalPrice(): ?float
{
return $this->orderTotalPrice;
}
public function setOrderTotalPrice(?float $orderTotalPrice): self
{
$this->orderTotalPrice = (float)$orderTotalPrice;
return $this;
}
public function getOrderPersonType(): ?string
{
return $this->orderPersonType;
}
public function setOrderPersonType(?string $orderPersonType): self
{
$this->orderPersonType = $orderPersonType;
return $this;
}
}