<?php
namespace App\Entity\Adherent;
use App\Repository\Adherent\MagasinHorairesExceptionnellesRepository;
use Doctrine\ORM\Mapping as ORM;
use DoctrineExtensions\Query\Mysql\Date;
use DoctrineExtensions\Query\Mysql\Time;
#[ORM\Table(name: 'magasin_horaires_exceptionnelles')]
#[ORM\Entity(repositoryClass: MagasinHorairesExceptionnellesRepository::class)]
class MagasinHorairesExceptionnelles
{
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null;
#[ORM\Column(name: 'date_debut', type: 'date', nullable: false)]
private \DateTime|null $date_debut = null;
#[ORM\Column(name: 'date_fin', type: 'date', nullable: false)]
private \DateTime|null $date_fin = null;
#[ORM\Column(name: 'HoAm', type: 'time', nullable: true)]
private \DateTime|null $HoAm = null;
#[ORM\Column(name: 'HfAm', type: 'time', nullable: true)]
private \DateTime|null $HfAm = null;
#[ORM\Column(name: 'HoPm', type: 'time', nullable: true)]
private \DateTime|null $HoPm = null;
#[ORM\Column(name: 'HfPm', type: 'time', nullable: true)]
private \DateTime|null $HfPm = null;
#[ORM\Column(name: 'full_day', type: 'boolean', nullable: false)]
private ?bool $fullDay = null;
#[ORM\Column(name: 'open', type: 'boolean', nullable: false)]
private ?bool $open = null;
#[ORM\Column(name: 'comment', type: 'text', nullable: true)]
private ?string $comment = null;
#[ORM\Column(name: 'comment_nl', type: 'text', nullable: true)]
private ?string $commentNl = null;
#[ORM\ManyToOne(targetEntity: Magasin::class, inversedBy: 'magasinHorairesExceptionnelles')]
#[ORM\JoinColumn(name: 'magasin', referencedColumnName: 'k_adherent')]
private $magasin;
//Fonction pour retourner un array issue de la collection d'objet
public function toArray(){
return get_object_vars($this);
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set day.
*
* @param \DateTime $day
*
* @return MagasinHorairesExceptionnelles
*/
public function setDay($day)
{
$this->day = $day;
return $this;
}
/**
* Get day.
*
* @return \DateTime
*/
public function getDay()
{
return $this->day;
}
/**
* Set openAm.
*
* @param \DateTime|null $openAm
*
* @return MagasinHorairesExceptionnelles
*/
public function setOpenAm($openAm = null)
{
$this->openAm = $openAm;
return $this;
}
/**
* Get openAm.
*
* @return \DateTime|null
*/
public function getOpenAm()
{
return $this->openAm;
}
/**
* Set closeAm.
*
* @param \DateTime|null $closeAm
*
* @return MagasinHorairesExceptionnelles
*/
public function setCloseAm($closeAm = null)
{
$this->closeAm = $closeAm;
return $this;
}
/**
* Get closeAm.
*
* @return \DateTime|null
*/
public function getCloseAm()
{
return $this->closeAm;
}
/**
* @return string|null
*/
public function getCommentNl(): ?string
{
return $this->commentNl;
}
/**
* @param string|null $commentNl
*/
public function setCommentNl(?string $commentNl): void
{
$this->commentNl = $commentNl;
}
/**
* Set openPm.
*
* @param \DateTime|null $openPm
*
* @return MagasinHorairesExceptionnelles
*/
public function setOpenPm($openPm = null)
{
$this->openPm = $openPm;
return $this;
}
/**
* Get openPm.
*
* @return \DateTime|null
*/
public function getOpenPm()
{
return $this->openPm;
}
/**
* Set closePm.
*
* @param \DateTime|null $closePm
*
* @return MagasinHorairesExceptionnelles
*/
public function setClosePm($closePm = null)
{
$this->closePm = $closePm;
return $this;
}
/**
* Get closePm.
*
* @return \DateTime|null
*/
public function getClosePm()
{
return $this->closePm;
}
/**
* Set fullDay.
*
* @param bool $fullDay
*
* @return MagasinHorairesExceptionnelles
*/
public function setFullDay($fullDay)
{
$this->fullDay = $fullDay;
return $this;
}
/**
* Get fullDay.
*
* @return bool
*/
public function getFullDay()
{
return $this->fullDay;
}
/**
* Set open.
*
* @param bool $open
*
* @return MagasinHorairesExceptionnelles
*/
public function setOpen($open)
{
$this->open = $open;
return $this;
}
/**
* Get open.
*
* @return bool
*/
public function getOpen()
{
return $this->open;
}
/**
* Set comment.
*
* @param string|null $comment
*
* @return MagasinHorairesExceptionnelles
*/
public function setComment($comment = null)
{
$this->comment = $comment;
return $this;
}
/**
* Get comment.
*
* @return string|null
*/
public function getComment()
{
return $this->comment;
}
/**
* Set dateDebut.
*
* @param \DateTime $dateDebut
*
* @return MagasinHorairesExceptionnelles
*/
public function setDateDebut($dateDebut)
{
$this->date_debut = $dateDebut;
return $this;
}
/**
* Get dateDebut.
*
* @return \DateTime
*/
public function getDateDebut()
{
return $this->date_debut;
}
/**
* Set dateFin.
*
* @param \DateTime $dateFin
*
* @return MagasinHorairesExceptionnelles
*/
public function setDateFin($dateFin)
{
$this->date_fin = $dateFin;
return $this;
}
/**
* Get dateFin.
*
* @return \DateTime
*/
public function getDateFin()
{
return $this->date_fin;
}
/**
* Set hoAm.
*
* @param \DateTime|null $hoAm
*
* @return MagasinHorairesExceptionnelles
*/
public function setHoAm($hoAm = null)
{
$this->HoAm = $hoAm;
return $this;
}
/**
* Get hoAm.
*
* @return \DateTime|null
*/
public function getHoAm()
{
return $this->HoAm;
}
/**
* Set hfAm.
*
* @param \DateTime|null $hfAm
*
* @return MagasinHorairesExceptionnelles
*/
public function setHfAm($hfAm = null)
{
$this->HfAm = $hfAm;
return $this;
}
/**
* Get hfAm.
*
* @return \DateTime|null
*/
public function getHfAm()
{
return $this->HfAm;
}
/**
* Set hoPm.
*
* @param \DateTime|null $hoPm
*
* @return MagasinHorairesExceptionnelles
*/
public function setHoPm($hoPm = null)
{
$this->HoPm = $hoPm;
return $this;
}
/**
* Get hoPm.
*
* @return \DateTime|null
*/
public function getHoPm()
{
return $this->HoPm;
}
/**
* Set hfPm.
*
* @param \DateTime|null $hfPm
*
* @return MagasinHorairesExceptionnelles
*/
public function setHfPm($hfPm = null)
{
$this->HfPm = $hfPm;
return $this;
}
/**
* Get hfPm.
*
* @return \DateTime|null
*/
public function getHfPm()
{
return $this->HfPm;
}
public function getMagasin(): ?Magasin
{
return $this->magasin;
}
public function setMagasin(?Magasin $magasin): self
{
$this->magasin = $magasin;
return $this;
}
}