<?php
namespace App\Entity;
use App\Repository\LogPlanningRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LogPlanningRepository::class)
*/
class LogPlanning
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Intervenant::class, inversedBy="logPlannings")
*/
private $intervenantOld;
/**
* @ORM\ManyToOne(targetEntity=Intervenant::class, inversedBy="logPlannings")
*/
private $newIntervenant;
/**
* @ORM\ManyToOne(targetEntity=SessionSalon::class, inversedBy="logPlanningsSession")
*/
private $sessionSalon;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private $createdAt;
/**
* @param $createdAt
*/
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getIntervenantOld(): ?Intervenant
{
return $this->intervenantOld;
}
public function setIntervenantOld(?Intervenant $intervenantOld): self
{
$this->intervenantOld = $intervenantOld;
return $this;
}
public function getNewIntervenant(): ?Intervenant
{
return $this->newIntervenant;
}
public function setNewIntervenant(?Intervenant $newIntervenant): self
{
$this->newIntervenant = $newIntervenant;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
/**
* @return mixed
*/
public function getSessionSalon()
{
return $this->sessionSalon;
}
/**
* @param mixed $sessionSalon
*/
public function setSessionSalon($sessionSalon): void
{
$this->sessionSalon = $sessionSalon;
}
}