src/Entity/FacturaBody.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FacturaBodyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=FacturaBodyRepository::class)
  7.  */
  8. class FacturaBody
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=FacturiHeader::class, inversedBy="facturaBodies")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $facturaHeader;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Tranche::class, inversedBy="facturaBodies")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $tranche;
  26.     /**
  27.      * @ORM\Column(type="decimal", precision=21, scale=2)
  28.      */
  29.     private $quantity;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getFacturaHeader(): ?FacturiHeader
  35.     {
  36.         return $this->facturaHeader;
  37.     }
  38.     public function setFacturaHeader(?FacturiHeader $facturaHeader): self
  39.     {
  40.         $this->facturaHeader $facturaHeader;
  41.         return $this;
  42.     }
  43.     public function getTranche(): ?Tranche
  44.     {
  45.         return $this->tranche;
  46.     }
  47.     public function setTranche(?Tranche $tranche): self
  48.     {
  49.         $this->tranche $tranche;
  50.         return $this;
  51.     }
  52.     public function getQuantity(): ?string
  53.     {
  54.         return $this->quantity;
  55.     }
  56.     public function setQuantity(string $quantity): self
  57.     {
  58.         $this->quantity $quantity;
  59.         return $this;
  60.     }
  61. }