<?php
namespace App\Entity;
use App\Repository\HoraireRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HoraireRepository::class)
*/
class Horaire
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=10)
*/
private $jour;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heureOuvertureMatin;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heureFermetureMatin;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heureFermetrureApresMidi;
/**
* @ORM\Column(type="time", nullable=true)
*/
private $heureOuvertureApresMidi;
/**
* @ORM\Column(type="boolean",nullable=true)
*/
private $etat;
/**
* @ORM\ManyToOne(targetEntity=Professionel::class, inversedBy="horaire")
*/
private $professionel;
public function getId(): ?int
{
return $this->id;
}
public function getJour(): ?string
{
return $this->jour;
}
public function setJour(string $jour): self
{
$this->jour = $jour;
return $this;
}
public function getHeureOuvertureMatin(): ?\DateTimeInterface
{
return $this->heureOuvertureMatin;
}
public function setHeureOuvertureMatin(?\DateTimeInterface $heureOuvertureMatin): self
{
$this->heureOuvertureMatin = $heureOuvertureMatin;
return $this;
}
public function getHeureFermetureMatin(): ?\DateTimeInterface
{
return $this->heureFermetureMatin;
}
public function setHeureFermetureMatin(?\DateTimeInterface $heureFermetureMatin): self
{
$this->heureFermetureMatin = $heureFermetureMatin;
return $this;
}
public function getHeureFermetrureApresMidi(): ?\DateTimeInterface
{
return $this->heureFermetrureApresMidi;
}
public function setHeureFermetrureApresMidi(?\DateTimeInterface $heureFermetrureApresMidi): self
{
$this->heureFermetrureApresMidi = $heureFermetrureApresMidi;
return $this;
}
public function getHeureOuvertureApresMidi(): ?\DateTimeInterface
{
return $this->heureOuvertureApresMidi;
}
public function setHeureOuvertureApresMidi(?\DateTimeInterface $heureOuvertureApresMidi): self
{
$this->heureOuvertureApresMidi = $heureOuvertureApresMidi;
return $this;
}
public function isEtat(): ?bool
{
return $this->etat;
}
public function setEtat(bool $etat): self
{
$this->etat = $etat;
return $this;
}
public function getProfessionel(): ?Professionel
{
return $this->professionel;
}
public function setProfessionel(?Professionel $professionel): self
{
$this->professionel = $professionel;
return $this;
}
}