<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class ParticipanteChat
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $participante;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $uuid;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Chat::class, inversedBy="participanteChats")
* @ORM\JoinColumn(name="chat_id", referencedColumnName="id")
*/
private $chat;
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getParticipante(): ?string
{
return $this->participante;
}
public function setParticipante(?string $participante): static
{
$this->participante = $participante;
return $this;
}
public function getUuid(): ?string
{
return $this->uuid;
}
public function setUuid(?string $uuid): static
{
$this->uuid = $uuid;
return $this;
}
public function getChat(): ?Chat
{
return $this->chat;
}
public function setChat(?Chat $chat): static
{
$this->chat = $chat;
return $this;
}
}