<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\BFResetPasswordRepository")
*/
class BFResetPassword
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="App\Entity\BFUser", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="string", length=255, unique=true, options={"collation":"latin1_bin"})
*/
private $token;
/**
* @ORM\Column(type="datetime")
*/
private $validitydate;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?BFUser
{
return $this->user;
}
public function setUser(BFUser $user): self
{
$this->user = $user;
return $this;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(string $token): self
{
$this->token = $token;
return $this;
}
public function getValiditydate(): ?\DateTimeInterface
{
return $this->validitydate;
}
public function setValiditydate(\DateTimeInterface $validitydate): self
{
$this->validitydate = $validitydate;
return $this;
}
}