src/Entity/DetailFacturePharmacie.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DetailFacturePharmacieRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DetailFacturePharmacieRepository::class)
  7.  */
  8. class DetailFacturePharmacie
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $designation;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $quantite;
  24.     /**
  25.      * @ORM\Column(type="float")
  26.      */
  27.     private $puttc;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=FacturePharmacie::class, inversedBy="detailFacturePharmacies")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $facture;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getDesignation(): ?string
  38.     {
  39.         return $this->designation;
  40.     }
  41.     public function setDesignation(string $designation): self
  42.     {
  43.         $this->designation $designation;
  44.         return $this;
  45.     }
  46.     public function getQuantite(): ?int
  47.     {
  48.         return $this->quantite;
  49.     }
  50.     public function setQuantite(int $quantite): self
  51.     {
  52.         $this->quantite $quantite;
  53.         return $this;
  54.     }
  55.     public function getPuttc(): ?float
  56.     {
  57.         return $this->puttc;
  58.     }
  59.     public function setPuttc(float $puttc): self
  60.     {
  61.         $this->puttc $puttc;
  62.         return $this;
  63.     }
  64.     public function getFacture(): ?FacturePharmacie
  65.     {
  66.         return $this->facture;
  67.     }
  68.     public function setFacture(?FacturePharmacie $facture): self
  69.     {
  70.         $this->facture $facture;
  71.         return $this;
  72.     }
  73. }