src/Entity/IctusPanierSpecial.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IctusPanierSpecialRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=IctusPanierSpecialRepository::class)
  7.  */
  8. class IctusPanierSpecial
  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", nullable=true)
  26.      */
  27.     private $prixUnitaire;
  28.     /**
  29.      * @ORM\Column(type="float", nullable=true)
  30.      */
  31.     private $total;
  32.     /**
  33.      * @ORM\Column(type="datetime_immutable")
  34.      */
  35.     private $createdAt;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="ictusPanierSpecials")
  38.      * @ORM\JoinColumn(nullable=false)
  39.      */
  40.     private $user;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity=IctusPharmacie::class, inversedBy="ictusPanierSpecials")
  43.      * @ORM\JoinColumn(nullable=false)
  44.      */
  45.     private $pharmacie;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Ordonnance::class, inversedBy="ictusPanierSpecials")
  48.      */
  49.     private $ordonnance;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getDesignation(): ?string
  55.     {
  56.         return $this->designation;
  57.     }
  58.     public function setDesignation(string $designation): self
  59.     {
  60.         $this->designation $designation;
  61.         return $this;
  62.     }
  63.     public function getQuantite(): ?int
  64.     {
  65.         return $this->quantite;
  66.     }
  67.     public function setQuantite(int $quantite): self
  68.     {
  69.         $this->quantite $quantite;
  70.         return $this;
  71.     }
  72.     public function getPrixUnitaire(): ?float
  73.     {
  74.         return $this->prixUnitaire;
  75.     }
  76.     public function setPrixUnitaire(?float $prixUnitaire): self
  77.     {
  78.         $this->prixUnitaire $prixUnitaire;
  79.         return $this;
  80.     }
  81.     public function getTotal(): ?float
  82.     {
  83.         return $this->total;
  84.     }
  85.     public function setTotal(?float $total): self
  86.     {
  87.         $this->total $total;
  88.         return $this;
  89.     }
  90.     public function getCreatedAt(): ?\DateTimeImmutable
  91.     {
  92.         return $this->createdAt;
  93.     }
  94.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  95.     {
  96.         $this->createdAt $createdAt;
  97.         return $this;
  98.     }
  99.     public function getUser(): ?User
  100.     {
  101.         return $this->user;
  102.     }
  103.     public function setUser(?User $user): self
  104.     {
  105.         $this->user $user;
  106.         return $this;
  107.     }
  108.     public function getPharmacie(): ?IctusPharmacie
  109.     {
  110.         return $this->pharmacie;
  111.     }
  112.     public function setPharmacie(?IctusPharmacie $pharmacie): self
  113.     {
  114.         $this->pharmacie $pharmacie;
  115.         return $this;
  116.     }
  117.     public function getOrdonnance(): ?Ordonnance
  118.     {
  119.         return $this->ordonnance;
  120.     }
  121.     public function setOrdonnance(?Ordonnance $ordonnance): self
  122.     {
  123.         $this->ordonnance $ordonnance;
  124.         return $this;
  125.     }
  126. }