<?php
namespace App\Entity;
use App\Repository\SupportRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=SupportRepository::class)
*/
class Support
{
public function __construct()
{
$this->date = new \DateTime();
}
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @Assert\NotBlank()
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @Assert\NotBlank()
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $society;
/**
* @Assert\NotBlank()
* @Assert\Email()
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @Assert\NotBlank()
* @ORM\Column(type="text", nullable=true)
*/
private $message;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $date;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getSociety(): ?string
{
return $this->society;
}
public function setSociety(?string $society): self
{
$this->society = $society;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
}