<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\IctoRemboursementRepository;
/**
* @ORM\Entity(repositoryClass=IctoRemboursementRepository::class)
*/
class IctoRemboursement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float")
*/
private $montant_demande;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $is_regler;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $montant_recu;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $recepteur;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $preuve;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $created_at;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $modified_at;
/**
* @ORM\ManyToOne(targetEntity=IctusPharmacie::class, inversedBy="ictoRemboursements")
* @ORM\JoinColumn(nullable=true)
*/
private $demandeur;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="ictoRemboursements")
*/
private $payeur;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $compte;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isCancel;
/**
* @ORM\ManyToOne(targetEntity=SocieteLivraison::class, inversedBy="ictoRemboursements")
*/
private $societeLivraison;
/**
* @ORM\ManyToOne(targetEntity=Typepaiement::class, inversedBy="ictoRemboursements")
* @ORM\JoinColumn(nullable=true)
*/
private $typePaiementDemande;
/**
* @ORM\ManyToOne(targetEntity=Typepaiement::class, inversedBy="ictoRemboursements")
* @ORM\JoinColumn(nullable=true)
*/
private $typePaiementObtenue;
public function __construct(){
$this->created_at = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getMontantDemande(): ?float
{
return $this->montant_demande;
}
public function setMontantDemande(float $montant_demande): self
{
$this->montant_demande = $montant_demande;
return $this;
}
public function isIsRegler(): ?bool
{
return $this->is_regler;
}
public function setIsRegler(?bool $is_regler): self
{
$this->is_regler = $is_regler;
return $this;
}
public function getMontantRecu(): ?float
{
return $this->montant_recu;
}
public function setMontantRecu(?float $montant_recu): self
{
$this->montant_recu = $montant_recu;
return $this;
}
public function getRecepteur(): ?string
{
return $this->recepteur;
}
public function setRecepteur(?string $recepteur): self
{
$this->recepteur = $recepteur;
return $this;
}
public function getPreuve(): ?string
{
return $this->preuve;
}
public function setPreuve(?string $preuve): self
{
$this->preuve = $preuve;
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 getModifiedAt(): ?\DateTime
{
return $this->modified_at;
}
public function setModifiedAt(?\DateTime $modified_at): self
{
$this->modified_at = $modified_at;
return $this;
}
public function getDemandeur(): ?IctusPharmacie
{
return $this->demandeur;
}
public function setDemandeur(?IctusPharmacie $demandeur): self
{
$this->demandeur = $demandeur;
return $this;
}
public function getPayeur(): ?User
{
return $this->payeur;
}
public function setPayeur(?User $payeur): self
{
$this->payeur = $payeur;
return $this;
}
public function getCompte(): ?string
{
return $this->compte;
}
public function setCompte(?string $compte): self
{
$this->compte = $compte;
return $this;
}
public function isIsCancel(): ?bool
{
return $this->isCancel;
}
public function setIsCancel(?bool $isCancel): self
{
$this->isCancel = $isCancel;
return $this;
}
public function getSocieteLivraison(): ?SocieteLivraison
{
return $this->societeLivraison;
}
public function setSocieteLivraison(?SocieteLivraison $societeLivraison): self
{
$this->societeLivraison = $societeLivraison;
return $this;
}
public function getTypePaiementDemande(): ?Typepaiement
{
return $this->typePaiementDemande;
}
public function setTypePaiementDemande(?Typepaiement $typePaiementDemande): self
{
$this->typePaiementDemande = $typePaiementDemande;
return $this;
}
public function getTypePaiementObtenue(): ?Typepaiement
{
return $this->typePaiementObtenue;
}
public function setTypePaiementObtenue(?Typepaiement $typePaiementObtenue): self
{
$this->typePaiementObtenue = $typePaiementObtenue;
return $this;
}
}