<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\CgvUserSignatureRepository")
*
* @ORM\Table(name="cgv_user_signature")
*/
class CgvUserSignature
{
/**
* @ORM\Id
*
* @ORM\Column(type="bigint")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="cgvSignatures")
*/
protected $user;
/**
* @ORM\Column(type="string", length=255)
*/
protected $country;
/**
* @ORM\Column(type="datetime")
*/
protected $date;
public function __construct()
{
$this->setDate(new \DateTime());
}
public function getUser()
{
return $this->user;
}
public function setUser($user): void
{
$this->user = $user;
}
public function getCountry()
{
return $this->country;
}
public function setCountry($country): void
{
$this->country = $country;
}
public function getDate()
{
return $this->date;
}
public function setDate($date): void
{
$this->date = $date;
}
}