src/Entity/RemiseUserPharmacie.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RemiseUserPharmacieRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=RemiseUserPharmacieRepository::class)
  7.  */
  8. class RemiseUserPharmacie
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="datetime_immutable")
  18.      */
  19.     private $createdAt;
  20.     /**
  21.      * @ORM\Column(type="float")
  22.      */
  23.     private $remise;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=true)
  26.      */
  27.     private $isValide;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="remiseUserPharmacies")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $user;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Ictuspharmacie::class, inversedBy="remiseUserPharmacies")
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private $pharmacie;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getCreatedAt(): ?\DateTimeImmutable
  43.     {
  44.         return $this->createdAt;
  45.     }
  46.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  47.     {
  48.         $this->createdAt $createdAt;
  49.         return $this;
  50.     }
  51.     public function getRemise(): ?float
  52.     {
  53.         return $this->remise;
  54.     }
  55.     public function setRemise(float $remise): self
  56.     {
  57.         $this->remise $remise;
  58.         return $this;
  59.     }
  60.     public function isIsValide(): ?bool
  61.     {
  62.         return $this->isValide;
  63.     }
  64.     public function setIsValide(?bool $isValide): self
  65.     {
  66.         $this->isValide $isValide;
  67.         return $this;
  68.     }
  69.     public function getUser(): ?User
  70.     {
  71.         return $this->user;
  72.     }
  73.     public function setUser(?User $user): self
  74.     {
  75.         $this->user $user;
  76.         return $this;
  77.     }
  78.     public function getPharmacie(): ?Ictuspharmacie
  79.     {
  80.         return $this->pharmacie;
  81.     }
  82.     public function setPharmacie(?Ictuspharmacie $pharmacie): self
  83.     {
  84.         $this->pharmacie $pharmacie;
  85.         return $this;
  86.     }
  87. }