<?php
namespace App\Entity;
use App\Repository\LandingContactRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=LandingContactRepository::class)
*/
class LandingContact
{
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="string", length=255, nullable=true)
*/
private $country;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity=Catalog::class, inversedBy="landingContacts")
*/
private $catalog;
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 getCountry(): ?string
{
return $this->country;
}
public function setCountry(?string $country): self
{
$this->country = $country;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getCatalog(): ?Catalog
{
return $this->catalog;
}
public function setCatalog(?Catalog $catalog): self
{
$this->catalog = $catalog;
return $this;
}
}