<?php
namespace App\Entity;
use App\Repository\CBRCResetPasswordRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CBRCResetPasswordRepository::class)
*/
class CBRCResetPassword
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=CBRCUser::class, inversedBy="resetpassword", 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(): ?CBRCUser
{
return $this->user;
}
public function setUser(CBRCUser $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;
}
}