<?php
namespace App\Entity;
use App\Repository\AppMensajeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AppMensajeRepository::class)]
class AppMensaje
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $titulo = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $mensaje = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $tipo = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getTitulo(): ?string
{
return $this->titulo;
}
public function setTitulo(?string $titulo): self
{
$this->titulo = $titulo;
return $this;
}
public function getMensaje(): ?string
{
return $this->mensaje;
}
public function setMensaje(?string $mensaje): self
{
$this->mensaje = $mensaje;
return $this;
}
public function getTipo(): ?string
{
return $this->tipo;
}
public function setTipo(?string $tipo): self
{
$this->tipo = $tipo;
return $this;
}
}