Segelparade / www / symfonyproject / src / Entity / Conversation.php
Conversation.php
Raw
<?php

namespace App\Entity;

use App\Repository\ConversationRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity(repositoryClass: ConversationRepository::class)]
class Conversation
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column]
    private ?int $id = null;

    #[ORM\Column(length: 255)]
    private ?string $message = null;

    #[ORM\Column(type: Types::DATE_MUTABLE)]
    private ?\DateTimeInterface $send = null;

    #[ORM\Column(length: 255)]
    private ?string $type = null;

    #[ORM\ManyToOne(inversedBy: 'conversation')]
    #[ORM\JoinColumn(nullable: false)]
    private ?Image $fk_image = null;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getMessage(): ?string
    {
        return $this->message;
    }

    public function setMessage(string $message): static
    {
        $this->message = $message;

        return $this;
    }

    public function getSend(): ?\DateTimeInterface
    {
        return $this->send;
    }

    public function setSend(\DateTimeInterface $send): static
    {
        $this->send = $send;

        return $this;
    }

    public function getType(): ?string
    {
        return $this->type;
    }

    public function setType(string $type): static
    {
        $this->type = $type;

        return $this;
    }

    public function getFkImage(): ?Image
    {
        return $this->fk_image;
    }

    public function setFkImage(?Image $fk_image): static
    {
        $this->fk_image = $fk_image;

        return $this;
    }
}