src/Entity/AppMensaje.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AppMensajeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassAppMensajeRepository::class)]
  7. class AppMensaje
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $name null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $titulo null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $mensaje null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $tipo null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getName(): ?string
  26.     {
  27.         return $this->name;
  28.     }
  29.     public function setName(?string $name): self
  30.     {
  31.         $this->name $name;
  32.         return $this;
  33.     }
  34.     
  35.     public function getTitulo(): ?string
  36.     {
  37.         return $this->titulo;
  38.     }
  39.     public function setTitulo(?string $titulo): self
  40.     {
  41.         $this->titulo $titulo;
  42.         return $this;
  43.     }
  44.     public function getMensaje(): ?string
  45.     {
  46.         return $this->mensaje;
  47.     }
  48.     public function setMensaje(?string $mensaje): self
  49.     {
  50.         $this->mensaje $mensaje;
  51.         return $this;
  52.     }
  53.     public function getTipo(): ?string
  54.     {
  55.         return $this->tipo;
  56.     }
  57.     public function setTipo(?string $tipo): self
  58.     {
  59.         $this->tipo $tipo;
  60.         return $this;
  61.     }
  62. }