<?phpnamespace App\Entity;use App\Repository\RemiseUserPharmacieRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=RemiseUserPharmacieRepository::class) */class RemiseUserPharmacie{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\Column(type="float") */ private $remise; /** * @ORM\Column(type="boolean", nullable=true) */ private $isValide; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="remiseUserPharmacies") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\ManyToOne(targetEntity=Ictuspharmacie::class, inversedBy="remiseUserPharmacies") * @ORM\JoinColumn(nullable=false) */ private $pharmacie; public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getRemise(): ?float { return $this->remise; } public function setRemise(float $remise): self { $this->remise = $remise; return $this; } public function isIsValide(): ?bool { return $this->isValide; } public function setIsValide(?bool $isValide): self { $this->isValide = $isValide; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getPharmacie(): ?Ictuspharmacie { return $this->pharmacie; } public function setPharmacie(?Ictuspharmacie $pharmacie): self { $this->pharmacie = $pharmacie; return $this; }}