/
var
/
www
/
html
/
restaurants
/
src
/
Entity
/
Upload File
HOME
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use App\Entity\Users; /** * @ORM\Entity(repositoryClass="App\Repository\SubscriptionRepository") */ class Subscription { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\OneToOne(targetEntity="Users", inversedBy="subscription") */ private $user; /** * @ORM\Column(type="string", length=255) */ private $email_token; /** * @ORM\Column(type="string", length=255) */ private $code; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $authcode; /** * @ORM\Column(type="datetime") */ private $start; /** * @var \DateTime * * @ORM\Column(name="expiry", type="datetime", nullable=true) */ private $expiry; /** * @ORM\Column(name="status", type="boolean") */ private $status; /** * @ORM\Column(name="renew", type="boolean") */ private $renew; public function getId(): ?int { return $this->id; } public function getUser(): ?Users { return $this->user; } public function setUser(Users $user): self { $this->user = $user; return $this; } public function getEmailToken(): ?string { return $this->email_token; } public function setEmailToken(string $email_token): self { $this->email_token = $email_token; return $this; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getAuthcode(): ?string { return $this->authcode; } public function setAuthcode(string $authcode): self { $this->authcode = $authcode; return $this; } public function getStart(): ?\DateTimeInterface { return $this->start; } public function setStart(\DateTimeInterface $start): self { $this->start = $start; return $this; } public function getExpiry(): ?\DateTimeInterface { return $this->expiry; } public function setExpiry(\DateTimeInterface $expiry): self { $this->expiry = $expiry; return $this; } public function getStatus(): ?bool { return $this->status; } public function setStatus(bool $status): self { $this->status = $status; return $this; } public function getRenew(): ?bool { return $this->renew; } public function setRenew(bool $renew): self { $this->renew = $renew; return $this; } }