<?php
namespace App\Entity;
use App\Repository\CorreoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CorreoRepository::class)]
class Correo
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $titulo = null;
#[ORM\Column(length: 255)]
private ?string $de = null;
#[ORM\Column(type: 'text')]
private ?string $para = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $copia = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $copiaOculta = null;
#[ORM\Column(type: 'longtext', nullable: true)]
private ?string $contenido = null;
#[ORM\Column(type: 'boolean', options: ['default' => false])]
private bool $enviado = false;
#[ORM\Column(type: 'datetime')]
private ?\DateTimeInterface $fechaEmision = null;
#[ORM\Column(type: 'datetime', nullable: true)]
private ?\DateTimeInterface $fechaEnvio = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $username = null;
# ---- Getters y Setters ---- #
public function getId(): ?int
{
return $this->id;
}
public function getTitulo(): ?string
{
return $this->titulo;
}
public function setTitulo(string $titulo): self
{
$this->titulo = $titulo;
return $this;
}
public function getDe(): ?string
{
return $this->de;
}
public function setDe(string $de): self
{
$this->de = $de;
return $this;
}
public function getPara(): ?string
{
return $this->para;
}
public function setPara(string $para): self
{
$this->para = $para;
return $this;
}
public function getCopia(): ?string
{
return $this->copia;
}
public function setCopia(?string $copia): self
{
$this->copia = $copia;
return $this;
}
public function getCopiaOculta(): ?string
{
return $this->copiaOculta;
}
public function setCopiaOculta(?string $copiaOculta): self
{
$this->copiaOculta = $copiaOculta;
return $this;
}
public function getContenido(): ?string
{
return $this->contenido;
}
public function setContenido(?string $contenido): self
{
$this->contenido = $contenido;
return $this;
}
public function isEnviado(): bool
{
return $this->enviado;
}
public function setEnviado(bool $enviado): self
{
$this->enviado = $enviado;
return $this;
}
public function getFechaEmision(): ?\DateTimeInterface
{
return $this->fechaEmision;
}
public function setFechaEmision(\DateTimeInterface $fechaEmision): self
{
$this->fechaEmision = $fechaEmision;
return $this;
}
public function getFechaEnvio(): ?\DateTimeInterface
{
return $this->fechaEnvio;
}
public function setFechaEnvio(?\DateTimeInterface $fechaEnvio): self
{
$this->fechaEnvio = $fechaEnvio;
return $this;
}
public function getUsername(): ?string
{
return $this->username;
}
public function setUsername(?string $username): self
{
$this->username = $username;
return $this;
}
}