src/Entity/DocumentUserRights.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * DocumentUserRights
  6.  *
  7.  * @ORM\Table(name="document_user_rights")
  8.  * @ORM\Entity(repositoryClass="\App\Repository\DocumentUserRightsRepository")
  9.  */
  10. class DocumentUserRights
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Document", inversedBy="userRights")
  22.      * @ORM\JoinColumn(name="document_id", referencedColumnName="id")
  23.      */
  24.     private $document;
  25.     /**
  26.      * @ORM\Column(name="uid", type="string", length=255)
  27.      */
  28.     private $uid;
  29.     /**
  30.      * Get id
  31.      *
  32.      * @return integer
  33.      */
  34.     public function getId()
  35.     {
  36.         return $this->id;
  37.     }
  38.     /**
  39.      * Get uid
  40.      *
  41.      * @return string
  42.      */
  43.     public function getUid()
  44.     {
  45.         return $this->uid;
  46.     }
  47.     /**
  48.      * Set uid
  49.      *
  50.      * @param string $uid
  51.      *
  52.      * @return DocumentUserRights
  53.      */
  54.     public function setUid($uid)
  55.     {
  56.         $this->uid $uid;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get document
  61.      *
  62.      * @return Document
  63.      */
  64.     public function getDocument()
  65.     {
  66.         return $this->document;
  67.     }
  68.     /**
  69.      * Set document
  70.      *
  71.      * @param Document $document
  72.      *
  73.      * @return DocumentUserRights
  74.      */
  75.     public function setDocument(Document $document null)
  76.     {
  77.         $this->document $document;
  78.         return $this;
  79.     }
  80. }