<?php
namespace App\Entity;
use App\Repository\ContactRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContactRepository::class)]
class Contact
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $yourname = null;
#[ORM\Column(length: 100)]
private ?string $youremail = null;
#[ORM\Column(length: 255)]
private ?string $yourmessage = null;
public function getId(): ?int
{
return $this->id;
}
public function getYourname(): ?string
{
return $this->yourname;
}
public function setYourname(?string $yourname): self
{
$this->yourname = $yourname;
return $this;
}
public function getYouremail(): ?string
{
return $this->youremail;
}
public function setYouremail(string $youremail): self
{
$this->youremail = $youremail;
return $this;
}
public function getYourmessage(): ?string
{
return $this->yourmessage;
}
public function setYourmessage(string $yourmessage): self
{
$this->yourmessage = $yourmessage;
return $this;
}
}