src/Entity/UserConfidentialDocument.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\UserConfidentialDocumentRepository")
  6.  */
  7. class UserConfidentialDocument
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      *
  12.      * @ORM\GeneratedValue()
  13.      *
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer", nullable=true)
  19.      */
  20.     private $views 0;
  21.     /**
  22.      * @ORM\Column(type="string", nullable=true)
  23.      */
  24.     private $token;
  25.     /**
  26.      * @ORM\Column(type="datetime", nullable=true)
  27.      */
  28.     private $token_generated_at;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="documents")
  31.      *
  32.      * @ORM\JoinColumn(nullable=true)
  33.      */
  34.     private $user;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\ConfidentialDocument", inversedBy="user_documents")
  37.      *
  38.      * @ORM\JoinColumn(nullable=true)
  39.      */
  40.     private $confidential_document;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getViews(): ?int
  46.     {
  47.         return $this->views;
  48.     }
  49.     public function setViews(?int $views): self
  50.     {
  51.         $this->views $views;
  52.         return $this;
  53.     }
  54.     /**
  55.      * @return mixed
  56.      */
  57.     public function getToken()
  58.     {
  59.         return $this->token;
  60.     }
  61.     /**
  62.      * @param mixed $token
  63.      *
  64.      * @return UserConfidentialDocument
  65.      */
  66.     public function setToken($token)
  67.     {
  68.         $this->token $token;
  69.         return $this;
  70.     }
  71.     /**
  72.      * @return mixed
  73.      */
  74.     public function getTokenGeneratedAt()
  75.     {
  76.         return $this->token_generated_at;
  77.     }
  78.     /**
  79.      * @param mixed $token_generated_at
  80.      *
  81.      * @return UserConfidentialDocument
  82.      */
  83.     public function setTokenGeneratedAt($token_generated_at)
  84.     {
  85.         $this->token_generated_at $token_generated_at;
  86.         return $this;
  87.     }
  88.     /**
  89.      * @return mixed
  90.      */
  91.     public function getUser()
  92.     {
  93.         return $this->user;
  94.     }
  95.     /**
  96.      * @param mixed $user
  97.      *
  98.      * @return UserConfidentialDocument
  99.      */
  100.     public function setUser($user)
  101.     {
  102.         $this->user $user;
  103.         return $this;
  104.     }
  105.     /**
  106.      * @return mixed
  107.      */
  108.     public function getConfidentialDocument()
  109.     {
  110.         return $this->confidential_document;
  111.     }
  112.     /**
  113.      * @param mixed $confidential_document
  114.      *
  115.      * @return UserConfidentialDocument
  116.      */
  117.     public function setConfidentialDocument($confidential_document)
  118.     {
  119.         $this->confidential_document $confidential_document;
  120.         return $this;
  121.     }
  122. }