<?phpnamespace App\Entity;use App\Repository\NotificacionRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NotificacionRepository::class) */class Notificacion{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $asunto; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $contenido; /** * @ORM\ManyToOne(targetEntity=TipoNotificacion::class, inversedBy="notificaciones") * @ORM\JoinColumn(nullable=false) */ private $tipoNotificacion; /** * @ORM\Column(type="datetime", nullable=true) */ private $fecha; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="notificaciones") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="boolean") */ private $vista; public function getId(): ?int { return $this->id; } public function getAsunto(): ?string { return $this->asunto; } public function setAsunto(?string $asunto): self { $this->asunto = $asunto; return $this; } public function getContenido(): ?string { return $this->contenido; } public function setContenido(?string $contenido): self { $this->contenido = $contenido; return $this; } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(\DateTimeInterface $fecha): self { $this->fecha = $fecha; return $this; } public function getTipoNotificacion(): ?TipoNotificacion { return $this->tipoNotificacion; } public function setTipoNotificacion(?TipoNotificacion $tipoNotificacion): self { $this->tipoNotificacion = $tipoNotificacion; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getVista(): ?bool { return $this->vista; } public function setVista(bool $vista): self { $this->vista = $vista; return $this; }}