src/Entity/Correo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CorreoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCorreoRepository::class)]
  6. class Correo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $titulo null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $de null;
  16.     #[ORM\Column(type'text')]
  17.     private ?string $para null;
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private ?string $copia null;
  20.     #[ORM\Column(type'text'nullabletrue)]
  21.     private ?string $copiaOculta null;
  22.     #[ORM\Column(type'longtext'nullabletrue)]
  23.     private ?string $contenido null;
  24.     #[ORM\Column(type'boolean'options: ['default' => false])]
  25.     private bool $enviado false;
  26.     #[ORM\Column(type'datetime')]
  27.     private ?\DateTimeInterface $fechaEmision null;
  28.     #[ORM\Column(type'datetime'nullabletrue)]
  29.     private ?\DateTimeInterface $fechaEnvio null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $username null;
  32.     # ---- Getters y Setters ---- #
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getTitulo(): ?string
  38.     {
  39.         return $this->titulo;
  40.     }
  41.     public function setTitulo(string $titulo): self
  42.     {
  43.         $this->titulo $titulo;
  44.         return $this;
  45.     }
  46.     public function getDe(): ?string
  47.     {
  48.         return $this->de;
  49.     }
  50.     public function setDe(string $de): self
  51.     {
  52.         $this->de $de;
  53.         return $this;
  54.     }
  55.     public function getPara(): ?string
  56.     {
  57.         return $this->para;
  58.     }
  59.     public function setPara(string $para): self
  60.     {
  61.         $this->para $para;
  62.         return $this;
  63.     }
  64.     public function getCopia(): ?string
  65.     {
  66.         return $this->copia;
  67.     }
  68.     public function setCopia(?string $copia): self
  69.     {
  70.         $this->copia $copia;
  71.         return $this;
  72.     }
  73.     public function getCopiaOculta(): ?string
  74.     {
  75.         return $this->copiaOculta;
  76.     }
  77.     public function setCopiaOculta(?string $copiaOculta): self
  78.     {
  79.         $this->copiaOculta $copiaOculta;
  80.         return $this;
  81.     }
  82.     public function getContenido(): ?string
  83.     {
  84.         return $this->contenido;
  85.     }
  86.     public function setContenido(?string $contenido): self
  87.     {
  88.         $this->contenido $contenido;
  89.         return $this;
  90.     }
  91.     public function isEnviado(): bool
  92.     {
  93.         return $this->enviado;
  94.     }
  95.     public function setEnviado(bool $enviado): self
  96.     {
  97.         $this->enviado $enviado;
  98.         return $this;
  99.     }
  100.     public function getFechaEmision(): ?\DateTimeInterface
  101.     {
  102.         return $this->fechaEmision;
  103.     }
  104.     public function setFechaEmision(\DateTimeInterface $fechaEmision): self
  105.     {
  106.         $this->fechaEmision $fechaEmision;
  107.         return $this;
  108.     }
  109.     public function getFechaEnvio(): ?\DateTimeInterface
  110.     {
  111.         return $this->fechaEnvio;
  112.     }
  113.     public function setFechaEnvio(?\DateTimeInterface $fechaEnvio): self
  114.     {
  115.         $this->fechaEnvio $fechaEnvio;
  116.         return $this;
  117.     }
  118.     public function getUsername(): ?string
  119.     {
  120.         return $this->username;
  121.     }
  122.     public function setUsername(?string $username): self
  123.     {
  124.         $this->username $username;
  125.         return $this;
  126.     }
  127. }