<?php
namespace App\Entity;
use App\Repository\HtProformaRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HtProformaRepository::class)
*/
class HtProforma
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $htFile;
/**
* @ORM\Column(type="integer")
*/
private $idNum;
/**
* @ORM\Column(type="string", length=3)
*/
private $prefix;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $dateAt;
/**
* @ORM\Column(type="string", length=50)
*/
private $type;
/**
* @ORM\Column(type="float")
*/
private $totalNet;
/**
* @ORM\Column(type="string", length=255)
*/
private $vatTotalGroup;
/**
* @ORM\Column(type="float")
*/
private $total;
/**
* @ORM\Column(type="string", length=255)
*/
private $clientName;
/**
* @ORM\Column(type="string", length=255)
*/
private $clientAddress;
/**
* @ORM\Column(type="string", length=50)
*/
private $clientDocument;
/**
* @ORM\Column(type="string", length=50)
*/
private $clientType;
/**
* @ORM\Column(type="float")
*/
private $benefit;
/**
* @ORM\OneToMany(targetEntity=HtProformaItems::class, mappedBy="proforma", orphanRemoval=true)
*/
private $htProformaItems;
public function __construct()
{
$this->htProformaItems = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getHtFile(): ?int
{
return $this->htFile;
}
public function setHtFile(int $htFile): self
{
$this->htFile = $htFile;
return $this;
}
public function getIdNum(): ?int
{
return $this->idNum;
}
public function setIdNum(int $idNum): self
{
$this->idNum = $idNum;
return $this;
}
public function getPrefix(): ?string
{
return $this->prefix;
}
public function setPrefix(string $prefix): self
{
$this->prefix = $prefix;
return $this;
}
public function getDateAt(): ?\DateTimeImmutable
{
return $this->dateAt;
}
public function setDateAt(\DateTimeImmutable $dateAt): self
{
$this->dateAt = $dateAt;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getTotalNet(): ?float
{
return $this->totalNet;
}
public function setTotalNet(float $totalNet): self
{
$this->totalNet = $totalNet;
return $this;
}
public function getVatTotalGroup(): ?string
{
return $this->vatTotalGroup;
}
public function setVatTotalGroup(string $vatTotalGroup): self
{
$this->vatTotalGroup = $vatTotalGroup;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(float $total): self
{
$this->total = $total;
return $this;
}
public function getClientName(): ?string
{
return $this->clientName;
}
public function setClientName(string $clientName): self
{
$this->clientName = $clientName;
return $this;
}
public function getClientAddress(): ?string
{
return $this->clientAddress;
}
public function setClientAddress(string $clientAddress): self
{
$this->clientAddress = $clientAddress;
return $this;
}
public function getClientDocument(): ?string
{
return $this->clientDocument;
}
public function setClientDocument(string $clientDocument): self
{
$this->clientDocument = $clientDocument;
return $this;
}
public function getClientType(): ?string
{
return $this->clientType;
}
public function setClientType(string $clientType): self
{
$this->clientType = $clientType;
return $this;
}
public function getBenefit(): ?float
{
return $this->benefit;
}
public function setBenefit(float $benefit): self
{
$this->benefit = $benefit;
return $this;
}
/**
* @return Collection<int, HtProformaItems>
*/
public function getHtProformaItems(): Collection
{
return $this->htProformaItems;
}
public function addHtProformaItem(HtProformaItems $htProformaItem): self
{
if (!$this->htProformaItems->contains($htProformaItem)) {
$this->htProformaItems[] = $htProformaItem;
$htProformaItem->setProforma($this);
}
return $this;
}
public function removeHtProformaItem(HtProformaItems $htProformaItem): self
{
if ($this->htProformaItems->removeElement($htProformaItem)) {
// set the owning side to null (unless already changed)
if ($htProformaItem->getProforma() === $this) {
$htProformaItem->setProforma(null);
}
}
return $this;
}
}