<?phpnamespace App\Entity;use App\Repository\ReglementParticulierRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ReglementParticulierRepository::class) */class ReglementParticulier{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="reglementParticuliers") */ private $session; /** * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="reglementParticuliers") * @ORM\JoinColumn(nullable=false) */ private $tier; /** * @ORM\Column(type="float") */ private $montant; /** * @ORM\Column(type="float", nullable=true) */ private $montantimpute; /** * @ORM\Column(type="float", nullable=true) */ private $resteaimputer; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $createdeat; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $updatedat; /** * @ORM\ManyToOne(targetEntity=Site::class) */ private $site; /** * @ORM\ManyToOne(targetEntity=MoyPaiement::class, inversedBy="reglementParticuliers") */ private $modpaiement; /** * @ORM\Column(type="date", nullable=true) */ private $datereglement; public function __construct() { $this->montantimpute = 0; $this->createdeat = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getSession(): ?Session { return $this->session; } public function setSession(?Session $session): self { $this->session = $session; return $this; } public function getTier(): ?Tier { return $this->tier; } public function setTier(?Tier $tier): self { $this->tier = $tier; return $this; } public function getMontant(): ?float { return $this->montant; } public function setMontant(float $montant): self { $this->montant = $montant; return $this; } public function getMontantimpute(): ?float { return $this->montantimpute; } public function setMontantimpute(?float $montantimpute): self { $this->montantimpute = $montantimpute; return $this; } public function getResteaimputer(): ?float { return $this->resteaimputer; } public function setResteaimputer(?float $resteaimputer): self { $this->resteaimputer = $resteaimputer; return $this; } public function getCreatedeat(): ?\DateTimeImmutable { return $this->createdeat; } public function setCreatedeat(?\DateTimeImmutable $createdeat): self { $this->createdeat = $createdeat; return $this; } public function getUpdatedat(): ?\DateTimeImmutable { return $this->updatedat; } public function setUpdatedat(?\DateTimeImmutable $updatedat): self { $this->updatedat = $updatedat; return $this; } public function getSite(): ?Site { return $this->site; } public function setSite(?Site $site): self { $this->site = $site; return $this; } public function getModpaiement(): ?MoyPaiement { return $this->modpaiement; } public function setModpaiement(?MoyPaiement $modpaiement): self { $this->modpaiement = $modpaiement; return $this; } public function getDatereglement(): ?\DateTimeInterface { return $this->datereglement; } public function setDatereglement(?\DateTimeInterface $datereglement): self { $this->datereglement = $datereglement; return $this; }}