<?php
namespace App\Entity;
use App\Repository\FacturaBodyRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FacturaBodyRepository::class)
*/
class FacturaBody
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=FacturiHeader::class, inversedBy="facturaBodies")
* @ORM\JoinColumn(nullable=false)
*/
private $facturaHeader;
/**
* @ORM\ManyToOne(targetEntity=Tranche::class, inversedBy="facturaBodies")
* @ORM\JoinColumn(nullable=false)
*/
private $tranche;
/**
* @ORM\Column(type="decimal", precision=21, scale=2)
*/
private $quantity;
public function getId(): ?int
{
return $this->id;
}
public function getFacturaHeader(): ?FacturiHeader
{
return $this->facturaHeader;
}
public function setFacturaHeader(?FacturiHeader $facturaHeader): self
{
$this->facturaHeader = $facturaHeader;
return $this;
}
public function getTranche(): ?Tranche
{
return $this->tranche;
}
public function setTranche(?Tranche $tranche): self
{
$this->tranche = $tranche;
return $this;
}
public function getQuantity(): ?string
{
return $this->quantity;
}
public function setQuantity(string $quantity): self
{
$this->quantity = $quantity;
return $this;
}
}