<?php
namespace App\Entity;
use App\Repository\DemandeByCanalRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DemandeByCanalRepository::class)
*/
class DemandeByCanal
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $dateDemande;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateTraitement;
/**
* @ORM\ManyToOne(targetEntity=Canal::class, inversedBy="demandeByCanals")
*/
private $canal;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $contenu;
/**
* @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="demandeByCanals")
*/
private $utilisateur;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=CalendarEvent::class, inversedBy="demandeByCanals")
*/
private $calendar;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="demandeByCanals")
*/
private $executant;
/**
* @ORM\ManyToOne(targetEntity=Tache::class, inversedBy="demandeByCanals")
*/
private $tache;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $archive;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $note;
public function getId(): ?int
{
return $this->id;
}
public function getDateDemande(): ?\DateTimeInterface
{
return $this->dateDemande;
}
public function setDateDemande(\DateTimeInterface $dateDemande): self
{
$this->dateDemande = $dateDemande;
return $this;
}
public function getDateTraitement(): ?\DateTimeInterface
{
return $this->dateTraitement;
}
public function setDateTraitement(?\DateTimeInterface $dateTraitement): self
{
$this->dateTraitement = $dateTraitement;
return $this;
}
public function getCanal(): ?Canal
{
return $this->canal;
}
public function setCanal(?Canal $canal): self
{
$this->canal = $canal;
return $this;
}
public function getContenu(): ?string
{
return $this->contenu;
}
public function setContenu(?string $contenu): self
{
$this->contenu = $contenu;
return $this;
}
public function getUtilisateur(): ?Tier
{
return $this->utilisateur;
}
public function setUtilisateur(?Tier $utilisateur): self
{
$this->utilisateur = $utilisateur;
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(?bool $status): self
{
$this->status = $status;
return $this;
}
public function getCalendar(): ?CalendarEvent
{
return $this->calendar;
}
public function setCalendar(?CalendarEvent $calendar): self
{
$this->calendar = $calendar;
return $this;
}
public function getExecutant(): ?User
{
return $this->executant;
}
public function setExecutant(?User $executant): self
{
$this->executant = $executant;
return $this;
}
public function getTache(): ?Tache
{
return $this->tache;
}
public function setTache(?Tache $tache): self
{
$this->tache = $tache;
return $this;
}
public function isArchive(): ?bool
{
return $this->archive;
}
public function setArchive(?bool $archive): self
{
$this->archive = $archive;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(?string $note): self
{
$this->note = $note;
return $this;
}
}