<?php
namespace App\Entity;
use App\Repository\DemandeCongeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DemandeCongeRepository::class)]
class DemandeConge
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'demandeConges')]
private ?Pemploye $employe = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $created = null;
#[ORM\ManyToOne(inversedBy: 'demandeConges')]
private ?PDossier $dossier = null;
#[ORM\Column(nullable: true)]
private ?float $nombreJour = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateDebut = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateFin = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $motif = null;
#[ORM\Column(nullable: true)]
private ?bool $urgent = null;
#[ORM\ManyToOne(inversedBy: 'demandeConges')]
private ?PStatut $statut = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateReprise = null;
#[ORM\ManyToOne]
private ?LContract $contract = null;
#[ORM\ManyToOne(inversedBy: 'demandeConges')]
private ?PTypeConge $typeConge = null;
public function getId(): ?int
{
return $this->id;
}
public function getEmploye(): ?Pemploye
{
return $this->employe;
}
public function setEmploye(?Pemploye $employe): static
{
$this->employe = $employe;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(?\DateTimeInterface $created): static
{
$this->created = $created;
return $this;
}
public function getDossier(): ?PDossier
{
return $this->dossier;
}
public function setDossier(?PDossier $dossier): static
{
$this->dossier = $dossier;
return $this;
}
public function getNombreJour(): ?float
{
return $this->nombreJour;
}
public function setNombreJour(?float $nombreJour): static
{
$this->nombreJour = $nombreJour;
return $this;
}
public function getDateDebut(): ?\DateTimeInterface
{
return $this->dateDebut;
}
public function setDateDebut(?\DateTimeInterface $dateDebut): static
{
$this->dateDebut = $dateDebut;
return $this;
}
public function getDateFin(): ?\DateTimeInterface
{
return $this->dateFin;
}
public function setDateFin(?\DateTimeInterface $dateFin): static
{
$this->dateFin = $dateFin;
return $this;
}
public function getMotif(): ?string
{
return $this->motif;
}
public function setMotif(?string $motif): static
{
$this->motif = $motif;
return $this;
}
public function isUrgent(): ?bool
{
return $this->urgent;
}
public function setUrgent(?bool $urgent): static
{
$this->urgent = $urgent;
return $this;
}
public function getStatut(): ?PStatut
{
return $this->statut;
}
public function setStatut(?PStatut $statut): static
{
$this->statut = $statut;
return $this;
}
public function getDateReprise(): ?\DateTimeInterface
{
return $this->dateReprise;
}
public function setDateReprise(?\DateTimeInterface $dateReprise): static
{
$this->dateReprise = $dateReprise;
return $this;
}
public function getContract(): ?LContract
{
return $this->contract;
}
public function setContract(?LContract $contract): static
{
$this->contract = $contract;
return $this;
}
public function getTypeConge(): ?PTypeConge
{
return $this->typeConge;
}
public function setTypeConge(?PTypeConge $typeConge): static
{
$this->typeConge = $typeConge;
return $this;
}
}