<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ba_notification")
* @ORM\Entity(repositoryClass="App\Repository\NotificationRepository")
*/
class Notification
{
use \App\Traits\Timestampable;
use \App\Traits\Blameable;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $icone;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $vue = 0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $emailSent = 0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $recapSent = 0;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $titre;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $datePublication;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\NotificationType", inversedBy="notifications")
*/
private $type;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
*/
private $source;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
*/
private $destination;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $extraInfo;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isRappel = 0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isInApp = 0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isRecap = 0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isEmail = 0;
/**
* @ORM\ManyToOne(targetEntity=Evenement::class)
*/
private $event;
// Fake
private $resetReminders = 0;
public function getId(): ?int
{
return $this->id;
}
public function getIcone(): ?string
{
return $this->icone;
}
public function setIcone(?string $icone): self
{
$this->icone = $icone;
return $this;
}
public function getVue(): ?bool
{
return $this->vue;
}
public function setVue(?bool $vue): self
{
$this->vue = $vue;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getDatePublication(): ?\DateTimeInterface
{
return $this->datePublication;
}
public function setDatePublication(?\DateTimeInterface $datePublication): self
{
$this->datePublication = $datePublication;
return $this;
}
public function getType(): ?NotificationType
{
return $this->type;
}
public function setType(?NotificationType $type): self
{
$this->type = $type;
return $this;
}
public function getSource(): ?User
{
return $this->source;
}
public function setSource(?User $source): self
{
$this->source = $source;
return $this;
}
public function getDestination(): ?User
{
return $this->destination;
}
public function setDestination(?User $destination): self
{
$this->destination = $destination;
return $this;
}
public function getExtraInfo(): ?string
{
return $this->extraInfo;
}
public function setExtraInfo(?string $extraInfo): self
{
$this->extraInfo = $extraInfo;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedBy(): ?User
{
return $this->updatedBy;
}
public function setUpdatedBy(?User $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getIsRappel(): ?bool
{
return $this->isRappel;
}
public function setIsRappel(?bool $isRappel): self
{
$this->isRappel = $isRappel;
return $this;
}
public function getIsInApp(): ?bool
{
return $this->isInApp;
}
public function setIsInApp(?bool $isInApp): self
{
$this->isInApp = $isInApp;
return $this;
}
public function getIsRecap(): ?bool
{
return $this->isRecap;
}
public function setIsRecap(?bool $isRecap): self
{
$this->isRecap = $isRecap;
return $this;
}
public function getIsEmail(): ?bool
{
return $this->isEmail;
}
public function setIsEmail(?bool $isEmail): self
{
$this->isEmail = $isEmail;
return $this;
}
public function getEvent(): ?Evenement
{
return $this->event;
}
public function setEvent(?Evenement $event): self
{
$this->event = $event;
return $this;
}
public function getResetReminders(): ?bool
{
return $this->resetReminders;
}
public function setResetReminders(?bool $resetReminders): self
{
$this->resetReminders = $resetReminders;
return $this;
}
public function getEmailSent(): ?bool
{
return $this->emailSent;
}
public function setEmailSent(?bool $emailSent): self
{
$this->emailSent = $emailSent;
return $this;
}
public function getRecapSent(): ?bool
{
return $this->recapSent;
}
public function setRecapSent(?bool $recapSent): self
{
$this->recapSent = $recapSent;
return $this;
}
}