<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Contrat client
*
* @ORM\Table()
* @ORM\Entity
*/
class Absence
{
const MOTIF_FIN_DEMISSION = 0;
const MOTIF_FIN_RUPTURE_PE_EMPLOYEUR = 1;
const MOTIF_FIN_RUPTURE_PE_SALARIE = 2;
const MOTIF_FIN_RUPTURE_CO = 3;
const MOTIF_FIN_LICENCIEMENT = 4;
const MOTIF_FIN_FIN_CDD = 5;
const MOTIF_CHOMAGE_PARTIEL = 'chomage_partiel';
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\Column(name="dateDebut", type="string", nullable=true)
*/
private $dateDebut;
/**
* @ORM\Column(name="dateFin", type="string", nullable=true)
*/
private $dateFin;
/**
* @ORM\Column(name="heureDebut", type="string", nullable=true)
*/
private $heureDebut;
/**
* @ORM\Column(name="date_entree", type="string", nullable=true)
*/
private $heureFin;
/**
* @ORM\Column(name="nb_jours_abs", type="string", nullable=true)
*/
private $nbJoursAbs;
/**
* @ORM\Column(name="nb_heures", type="string", nullable=true)
*/
private $nbHeures;
/**
* @ORM\Column(name="motif", type="string", nullable=true)
*/
private $motif;
/**
* @ORM\Column(name="commentaires", type="text", nullable=true)
*/
private $commentaires;
/**
* @var Intervenant|null
*
* @ORM\ManyToOne(targetEntity="Intervenant")
* @ORM\JoinColumn(name="intervenant_id", referencedColumnName="id")
*/
private $intervenant;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getDateDebut()
{
return $this->dateDebut;
}
/**
* @param mixed $dateDebut
*/
public function setDateDebut($dateDebut): void
{
$this->dateDebut = $dateDebut;
}
/**
* @return mixed
*/
public function getDateFin()
{
return $this->dateFin;
}
/**
* @param mixed $dateFin
*/
public function setDateFin($dateFin): void
{
$this->dateFin = $dateFin;
}
/**
* @return mixed
*/
public function getHeureDebut()
{
return $this->heureDebut;
}
/**
* @param mixed $heureDebut
*/
public function setHeureDebut($heureDebut): void
{
$this->heureDebut = $heureDebut;
}
/**
* @return mixed
*/
public function getHeureFin()
{
return $this->heureFin;
}
/**
* @param mixed $heureFin
*/
public function setHeureFin($heureFin): void
{
$this->heureFin = $heureFin;
}
/**
* @return mixed
*/
public function getNbJoursAbs()
{
return $this->nbJoursAbs;
}
/**
* @param mixed $nbJoursAbs
*/
public function setNbJoursAbs($nbJoursAbs): void
{
$this->nbJoursAbs = $nbJoursAbs;
}
/**
* @return mixed
*/
public function getNbHeures()
{
return $this->nbHeures;
}
/**
* @param mixed $nbHeures
*/
public function setNbHeures($nbHeures): void
{
$this->nbHeures = $nbHeures;
}
/**
* @return mixed
*/
public function getMotif()
{
return $this->motif;
}
/**
* @param mixed $motif
*/
public function setMotif($motif): void
{
$this->motif = $motif;
}
/**
* @return mixed
*/
public function getCommentaires()
{
return $this->commentaires;
}
/**
* @param mixed $commentaires
*/
public function setCommentaires($commentaires): void
{
$this->commentaires = $commentaires;
}
/**
* @return Intervenant|null
*/
public function getIntervenant(): ?Intervenant
{
return $this->intervenant;
}
/**
* @param Contact|null $intervenant
*/
public function setIntervenant(?Intervenant $intervenant): void
{
$this->intervenant = $intervenant;
}
}