<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use PhpOffice\PhpSpreadsheet\Shared\Date;
use App\Repository\IntervenantSalonRepository;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=IntervenantSalonRepository::class)
*/
class IntervenantSalon
{
const HORAIRE_MATIN = 'matin';
const HORAIRE_APRESMIDI = 'apres-midi';
const HORAIRE_JOURNEE = 'journee-entiere';
const RECURRENCE_1_SEMAINE = '1/sem';
const RECURRENCE_2_SEMAINE = '2/sem';
const RECURRENCE_3_SEMAINE = '3/sem';
const RECURRENCE_4_SEMAINE = '4/sem';
/**
* @var int
* @Groups("rdv")
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var Address
*
* @ORM\ManyToOne(targetEntity="Salon",cascade={"persist"})
* @ORM\JoinColumn(name="salon_id", referencedColumnName="id")
*/
private $salon;
/**
* @var Address
* @Groups("rdv")
* @ORM\ManyToOne(targetEntity="Intervenant",cascade={"persist"})
* @ORM\JoinColumn(name="intervenant_id", referencedColumnName="id")
*/
private $intervenant;
/**
* @var array
*
* @ORM\Column(name="workingDay", type="array", nullable=true)
*/
private $workingDay;
/**
* @var string|null
*
* @ORM\Column(name="recurrence_generated", type="boolean")
*/
private $recurrenceGenerated = false;
/**
* @var string|null
*
* @ORM\Column(name="start", type="datetime", nullable=true)
*/
private $start;
/**
* @var string|null
* @ORM\Column(name="end", type="datetime", nullable=true)
*/
private $end;
/**
* @var string|null
*
* @ORM\Column(name="horaire", type="string", nullable=true)
*/
private $horaire;
/**
* @var string|null
*
* @ORM\Column(name="notes", type="text", nullable=true)
*/
private $notes;
/**
* @var string|null
*
* @ORM\Column(name="recurrence", type="string", nullable=true)
*/
private $recurrence;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return Salon
*/
public function getSalon()
{
return $this->salon;
}
/**
* @param Address $salon
*/
public function setSalon(Salon $salon): void
{
$this->salon = $salon;
}
/**
* @return Address
*/
public function getIntervenant(): ?Intervenant
{
return $this->intervenant;
}
/**
* @param Intervenant $intervenant
*/
public function setIntervenant($intervenant): void
{
$this->intervenant = $intervenant;
}
/**
* @return array
*/
public function getWorkingDay(): ?array
{
return $this->workingDay;
}
/**
* @param array $workingDay
*/
public function setWorkingDay(array $workingDay): void
{
$this->workingDay = $workingDay;
}
/**
* @return string|null
*/
public function getRecurrenceGenerated(): ?string
{
return $this->recurrenceGenerated;
}
/**
* @param string|null $recurrenceGenerated
*/
public function setRecurrenceGenerated(?string $recurrenceGenerated): void
{
$this->recurrenceGenerated = $recurrenceGenerated;
}
/**
* @return string|null
*/
public function getStart()
{
return $this->start;
}
/**
* @param string|null $start
*/
public function setStart($start): void
{
$this->start = $start;
}
/**
* @return \DateTime|null
*/
public function getEnd()
{
return $this->end;
}
/**
* @param string|null $end
*/
public function setEnd($end): void
{
$this->end = $end;
}
/**
* @return string|null
*/
public function getHoraire(): ?string
{
return $this->horaire;
}
/**
* @param string|null $horaire
*/
public function setHoraire(?string $horaire): void
{
$this->horaire = $horaire;
}
/**
* @return string|null
*/
public function getNotes(): ?string
{
return $this->notes;
}
/**
* @param string|null $notes
*/
public function setNotes(?string $notes): void
{
$this->notes = $notes;
}
/**
* @return string|null
*/
public function getRecurrence(): ?string
{
return $this->recurrence;
}
/**
* @param string|null $recurrence
*/
public function setRecurrence(?string $recurrence): void
{
$this->recurrence = $recurrence;
}
}