src/Entity/LogCancel.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LogPlanningRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LogPlanningRepository::class)
  7.  */
  8. class LogCancel
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Intervenant::class, inversedBy="logCancelsIntervenantOld")
  18.      */
  19.     private $intervenantOld;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Intervenant::class, inversedBy="logCancelsIntervenantNew")
  22.      */
  23.     private $newIntervenant;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=SessionSalon::class, inversedBy="logCancels")
  26.      */
  27.     private $sessionSalon;
  28.     /**
  29.      * @ORM\Column(type="datetime_immutable", nullable=true)
  30.      */
  31.     private $createdAt;
  32.     /**
  33.      * @param $createdAt
  34.      */
  35.     public function __construct()
  36.     {
  37.         $this->createdAt = new \DateTimeImmutable();
  38.     }
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getIntervenantOld(): ?Intervenant
  44.     {
  45.         return $this->intervenantOld;
  46.     }
  47.     public function setIntervenantOld(?Intervenant $intervenantOld): self
  48.     {
  49.         $this->intervenantOld $intervenantOld;
  50.         return $this;
  51.     }
  52.     public function getNewIntervenant(): ?Intervenant
  53.     {
  54.         return $this->newIntervenant;
  55.     }
  56.     public function setNewIntervenant(?Intervenant $newIntervenant): self
  57.     {
  58.         $this->newIntervenant $newIntervenant;
  59.         return $this;
  60.     }
  61.     public function getCreatedAt(): ?\DateTimeImmutable
  62.     {
  63.         return $this->createdAt;
  64.     }
  65.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  66.     {
  67.         $this->createdAt $createdAt;
  68.         return $this;
  69.     }
  70.     /**
  71.      * @return mixed
  72.      */
  73.     public function getSessionSalon()
  74.     {
  75.         return $this->sessionSalon;
  76.     }
  77.     /**
  78.      * @param mixed $sessionSalon
  79.      */
  80.     public function setSessionSalon($sessionSalon): void
  81.     {
  82.         $this->sessionSalon $sessionSalon;
  83.     }
  84. }