<?phpnamespace App\Entity;use App\Repository\ChatSessionRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ChatSessionRepository::class)]class ChatSession{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'chatSessions')] private ?User $sender = null; #[ORM\ManyToOne(inversedBy: 'chatSessions')] private ?Evenement $session = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $message = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $createdAt = null; #[ORM\Column(length: 255, nullable: true)] private ?string $senderRole = null; #[ORM\Column(length: 255, nullable: true)] private ?string $attachment = null; #[ORM\Column(length: 255, nullable: true)] private ?string $attachmentOriginalName = null; public function getId(): ?int { return $this->id; } public function getSender(): ?User { return $this->sender; } public function setSender(?User $sender): self { $this->sender = $sender; return $this; } public function getSession(): ?Evenement { return $this->session; } public function setSession(?Evenement $session): self { $this->session = $session; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(?string $message): self { $this->message = $message; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getSenderRole(): ?string { return $this->senderRole; } public function setSenderRole(?string $senderRole): self { $this->senderRole = $senderRole; return $this; } public function getAttachment(): ?string { return $this->attachment; } public function setAttachment(?string $attachment): self { $this->attachment = $attachment; return $this; } public function getAttachmentOriginalName(): ?string { return $this->attachmentOriginalName; } public function setAttachmentOriginalName(?string $attachmentOriginalName): self { $this->attachmentOriginalName = $attachmentOriginalName; return $this; }}