src/Entity/EventUserRights.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * EventUserRights
  6.  *
  7.  * @ORM\Table(name="event_user_rights")
  8.  * @ORM\Entity(repositoryClass="App\Repository\EventUserRightsRepository")
  9.  */
  10. class EventUserRights
  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.      * @var EventOpsProd $eventOpsProd
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\EventOpsProd", inversedBy="userRights")
  23.      * @ORM\JoinColumn(name="event_opsprod_id", referencedColumnName="id")
  24.      */
  25.     private $eventOpsProd;
  26.     /**
  27.      * @ORM\Column(name="uid", type="string", length=255)
  28.      */
  29.     private $uid;
  30.     /**
  31.      * Get id
  32.      *
  33.      * @return integer
  34.      */
  35.     public function getId()
  36.     {
  37.         return $this->id;
  38.     }
  39.     /**
  40.      * @return EventOpsProd
  41.      */
  42.     public function getEventOpsProd(): EventOpsProd
  43.     {
  44.         return $this->eventOpsProd;
  45.     }
  46.     /**
  47.      * @param EventOpsProd $eventOpsProd
  48.      */
  49.     public function setEventOpsProd(EventOpsProd $eventOpsProd): void
  50.     {
  51.         $this->eventOpsProd $eventOpsProd;
  52.     }
  53.     public function __toString()
  54.     {
  55.         return (string)$this->getUid();
  56.     }
  57.     /**
  58.      * Get uid
  59.      *
  60.      * @return string
  61.      */
  62.     public function getUid()
  63.     {
  64.         return $this->uid;
  65.     }
  66.     /**
  67.      * Set uid
  68.      *
  69.      * @param string $uid
  70.      *
  71.      * @return EventUserRights
  72.      */
  73.     public function setUid($uid)
  74.     {
  75.         $this->uid $uid;
  76.         return $this;
  77.     }
  78.     public function toString(): ?string
  79.     {
  80.         return "{uid=" $this->uid "}";
  81.     }
  82. }