src/Entity/Forum/GroupMember.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Forum;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Traits\CreatedUpdatedTrait;
  5. use JMS\Serializer\Annotation as JMS;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use JMS\Serializer\Annotation\Exclude;
  8. use JMS\Serializer\Annotation as Serializer;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. /**
  11.  * @ORM\Table(name="v_forum_group_member")
  12.  * @ORM\Entity
  13.  */
  14. class GroupMember
  15. {
  16.     /**
  17.      * @ORM\Id()
  18.      * @ORM\GeneratedValue()
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\Forum\Group")
  24.      * @Exclude
  25.      */
  26.     private $group;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  29.      * @Exclude
  30.      */
  31.     private $member;
  32.     use CreatedUpdatedTrait;
  33.     public function __toString()
  34.     {
  35.         return (string) $this->id;
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * @return mixed
  43.      */
  44.     public function getGroup()
  45.     {
  46.         return $this->group;
  47.     }
  48.     /**
  49.      * @param mixed $group
  50.      */
  51.     public function setGroup($group): void
  52.     {
  53.         $this->group $group;
  54.     }
  55.     /**
  56.      * @return mixed
  57.      */
  58.     public function getMember()
  59.     {
  60.         return $this->member;
  61.     }
  62.     /**
  63.      * @param mixed $member
  64.      */
  65.     public function setMember($member): void
  66.     {
  67.         $this->member $member;
  68.     }
  69. }