<?phpnamespace App\Entity;use App\Repository\HistoriquePaiementRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=HistoriquePaiementRepository::class) */class HistoriquePaiement{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="historiquePaiements") */ private $user; /** * @ORM\ManyToOne(targetEntity=Order::class, inversedBy="historiquePaiements") */ private $my_order; /** * @ORM\Column(type="float", nullable=true) */ private $motant_paye; /** * @ORM\Column(type="datetime", nullable=true) */ private $date_paiement; /** * @ORM\ManyToOne(targetEntity=Typepaiement::class, inversedBy="historiquePaiements") */ private $typepaiement; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $pj; /** * @ORM\Column(type="boolean", nullable=true) */ private $isValid; /** * @ORM\ManyToOne(targetEntity=Forecast::class, inversedBy="historiquePaiements") */ private $forecast; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getMyOrder(): ?Order { return $this->my_order; } public function setMyOrder(?Order $my_order): self { $this->my_order = $my_order; return $this; } public function getMotantPaye(): ?float { return $this->motant_paye; } public function setMotantPaye(?float $motant_paye): self { $this->motant_paye = $motant_paye; return $this; } public function getDatePaiement(): ?\DateTimeInterface { return $this->date_paiement; } public function setDatePaiement(?\DateTimeInterface $date_paiement): self { $this->date_paiement = $date_paiement; return $this; } public function getTypepaiement(): ?Typepaiement { return $this->typepaiement; } public function setTypepaiement(?Typepaiement $typepaiement): self { $this->typepaiement = $typepaiement; return $this; } public function getPj(): ?string { return $this->pj; } public function setPj(?string $pj): self { $this->pj = $pj; return $this; } public function isIsValid(): ?bool { return $this->isValid; } public function setIsValid(?bool $isValid): self { $this->isValid = $isValid; return $this; } public function getForecast(): ?Forecast { return $this->forecast; } public function setForecast(?Forecast $forecast): self { $this->forecast = $forecast; return $this; }}