<?phpnamespace App\Entity;use App\Repository\ReglementEcheanceRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ReglementEcheanceRepository::class) */class ReglementEcheance{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToMany(targetEntity=EcheanceInscrit::class, inversedBy="reglementEcheances") */ private $echeanceinscrit; /** * @ORM\ManyToMany(targetEntity=Reglement::class, inversedBy="reglementEcheances") */ private $reglement; /** * @ORM\Column(type="float", nullable=true) */ private $montantecheanceregle; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $created_at; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $updated_at; /** * @ORM\ManyToOne(targetEntity=EnteteFacture::class, inversedBy="reglementEcheances") */ private $enteteFacture; public function __construct() { $this->echeanceinscrit = new ArrayCollection(); $this->reglement = new ArrayCollection(); } public function getId(): ?int { return $this->id; } /** * @return Collection<int, EcheanceInscrit> */ public function getEcheanceinscrit(): Collection { return $this->echeanceinscrit; } public function addEcheanceinscrit(EcheanceInscrit $echeanceinscrit): self { if (!$this->echeanceinscrit->contains($echeanceinscrit)) { $this->echeanceinscrit[] = $echeanceinscrit; } return $this; } public function removeEcheanceinscrit(EcheanceInscrit $echeanceinscrit): self { $this->echeanceinscrit->removeElement($echeanceinscrit); return $this; } /** * @return Collection<int, Reglement> */ public function getReglement(): Collection { return $this->reglement; } public function addReglement(Reglement $reglement): self { if (!$this->reglement->contains($reglement)) { $this->reglement[] = $reglement; } return $this; } public function removeReglement(Reglement $reglement): self { $this->reglement->removeElement($reglement); return $this; } public function getMontantecheanceregle(): ?float { return $this->montantecheanceregle; } public function setMontantecheanceregle(?float $montantecheanceregle): self { $this->montantecheanceregle = $montantecheanceregle; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->created_at; } public function setCreatedAt(?\DateTimeImmutable $created_at): self { $this->created_at = $created_at; return $this; } public function getUpdatedAt(): ?\DateTimeImmutable { return $this->updated_at; } public function setUpdatedAt(?\DateTimeImmutable $updated_at): self { $this->updated_at = $updated_at; return $this; } public function getEnteteFacture(): ?EnteteFacture { return $this->enteteFacture; } public function setEnteteFacture(?EnteteFacture $enteteFacture): self { $this->enteteFacture = $enteteFacture; return $this; }}