<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\PaiementCandidatRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PaiementCandidatRepository::class)]
#[ApiResource]
class PaiementCandidat
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'paiementCandidats')]
private ?FactureCandidat $facture = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $datePaiementPrevue = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $datePaiement = null;
#[ORM\Column]
private ?int $etatPaiement = null;
#[ORM\Column]
private ?float $montant = null;
public function getId(): ?int
{
return $this->id;
}
public function getFacture(): ?FactureCandidat
{
return $this->facture;
}
public function setFacture(?FactureCandidat $facture): static
{
$this->facture = $facture;
return $this;
}
public function getDatePaiementPrevue(): ?\DateTimeInterface
{
return $this->datePaiementPrevue;
}
public function setDatePaiementPrevue(\DateTimeInterface $datePaiementPrevue): static
{
$this->datePaiementPrevue = $datePaiementPrevue;
return $this;
}
public function getDatePaiement(): ?\DateTimeInterface
{
return $this->datePaiement;
}
public function setDatePaiement(?\DateTimeInterface $datePaiement): self
{
$this->datePaiement = $datePaiement;
return $this;
}
public function getEtatPaiement(): ?int
{
return $this->etatPaiement;
}
public function setEtatPaiement(int $etatPaiement): static
{
$this->etatPaiement = $etatPaiement;
return $this;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(float $montant): static
{
$this->montant = $montant;
return $this;
}
}