src/Entity/EventCompanyRights.php line 13

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