<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\UserConfidentialDocumentRepository") */class UserConfidentialDocument{ /** * @ORM\Id() * * @ORM\GeneratedValue() * * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer", nullable=true) */ private $views = 0; /** * @ORM\Column(type="string", nullable=true) */ private $token; /** * @ORM\Column(type="datetime", nullable=true) */ private $token_generated_at; /** * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="documents") * * @ORM\JoinColumn(nullable=true) */ private $user; /** * @ORM\ManyToOne(targetEntity="App\Entity\ConfidentialDocument", inversedBy="user_documents") * * @ORM\JoinColumn(nullable=true) */ private $confidential_document; public function getId(): ?int { return $this->id; } public function getViews(): ?int { return $this->views; } public function setViews(?int $views): self { $this->views = $views; return $this; } /** * @return mixed */ public function getToken() { return $this->token; } /** * @param mixed $token * * @return UserConfidentialDocument */ public function setToken($token) { $this->token = $token; return $this; } /** * @return mixed */ public function getTokenGeneratedAt() { return $this->token_generated_at; } /** * @param mixed $token_generated_at * * @return UserConfidentialDocument */ public function setTokenGeneratedAt($token_generated_at) { $this->token_generated_at = $token_generated_at; return $this; } /** * @return mixed */ public function getUser() { return $this->user; } /** * @param mixed $user * * @return UserConfidentialDocument */ public function setUser($user) { $this->user = $user; return $this; } /** * @return mixed */ public function getConfidentialDocument() { return $this->confidential_document; } /** * @param mixed $confidential_document * * @return UserConfidentialDocument */ public function setConfidentialDocument($confidential_document) { $this->confidential_document = $confidential_document; return $this; }}