<?php
namespace App\Entity;
use App\Repository\NotificationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=NotificationRepository::class)
*/
class Notification
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $text;
/**
* @ORM\ManyToOne(targetEntity=ProgrammeContenaire::class, inversedBy="notifications")
*/
private $prct;
/**
* @ORM\Column(type="datetime")
*/
private $dateOperation;
public function getId(): ?int
{
return $this->id;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(string $text): self
{
$this->text = $text;
return $this;
}
public function getPrct(): ?ProgrammeContenaire
{
return $this->prct;
}
public function setPrct(?ProgrammeContenaire $prct): self
{
$this->prct = $prct;
return $this;
}
public function getDateOperation(): ?\DateTimeInterface
{
return $this->dateOperation;
}
public function setDateOperation(\DateTimeInterface $dateOperation): self
{
$this->dateOperation = $dateOperation;
return $this;
}
}