<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity
* @ORM\Table(name="mensaje")
*/
class Mensaje
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="integer", nullable=true, name="participante_en_conversacion_propietario_contenido")
*/
private $participanteEnConversacionPropietarioContenido;
/**
* @ORM\Column(type="integer", nullable=true, name="participante_en_conversacion_conversacion")
*/
private $participanteEnConversacionConversacion;
/**
* @ORM\Column(type="string", nullable=false)
*/
private $texto;
/**
* @ORM\Column(type="date", nullable=false, name="fecha_envio")
*/
private $fechaEnvio;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $leido;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $tipo;
/**
* @ORM\Column(type="datetime", nullable=true, name="deleted_at")
*/
private $deletedAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2024-01-01 00:00:00"})
* @Gedmo\Timestampable(on="update")
*/
private $updatedAt;
/**
* @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2024-01-01 00:00:00"})
* @Gedmo\Timestampable(on="create")
*/
private $createdAt;
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getParticipanteEnConversacionPropietarioContenido(): ?int
{
return $this->participanteEnConversacionPropietarioContenido;
}
public function setParticipanteEnConversacionPropietarioContenido(?int $participanteEnConversacionPropietarioContenido): static
{
$this->participanteEnConversacionPropietarioContenido = $participanteEnConversacionPropietarioContenido;
return $this;
}
public function getParticipanteEnConversacionConversacion(): ?int
{
return $this->participanteEnConversacionConversacion;
}
public function setParticipanteEnConversacionConversacion(?int $participanteEnConversacionConversacion): static
{
$this->participanteEnConversacionConversacion = $participanteEnConversacionConversacion;
return $this;
}
public function getTexto(): ?string
{
return $this->texto;
}
public function setTexto(string $texto): static
{
$this->texto = $texto;
return $this;
}
public function getFechaEnvio(): ?\DateTimeInterface
{
return $this->fechaEnvio;
}
public function setFechaEnvio(\DateTimeInterface $fechaEnvio): static
{
$this->fechaEnvio = $fechaEnvio;
return $this;
}
public function isLeido(): ?bool
{
return $this->leido;
}
public function setLeido(?bool $leido): static
{
$this->leido = $leido;
return $this;
}
public function getTipo(): ?string
{
return $this->tipo;
}
public function setTipo(?string $tipo): static
{
$this->tipo = $tipo;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): static
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
}