src/Entity/Program/ProgramCrewMember.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Program;
  3. use App\Entity\User;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ProgramCrewMemberRepository")
  7.  */
  8. class ProgramCrewMember
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity="App\Entity\Program\Program",inversedBy="crews")
  18.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  19.      */
  20.     private $program;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\User",inversedBy="crew")
  23.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  24.      */
  25.     private $user;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $title;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      * Il peux modifier les infos et crew membre et chat
  33.      * Pas de creation post / pas de suppression de post
  34.      */
  35.     private $hasAdminRole;
  36.     /**
  37.      * @ORM\Column(type="boolean")
  38.      * peux que crée des posts
  39.      */
  40.     private $hasPostPublisherRole;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getTitle(): ?string
  46.     {
  47.         return $this->title;
  48.     }
  49.     public function setTitle(string $title): self
  50.     {
  51.         $this->title $title;
  52.         return $this;
  53.     }
  54.     public function getProgram(): ?Program
  55.     {
  56.         return $this->program;
  57.     }
  58.     public function setProgram(?Program $program): self
  59.     {
  60.         $this->program $program;
  61.         return $this;
  62.     }
  63.     public function getUser(): ?User
  64.     {
  65.         return $this->user;
  66.     }
  67.     public function setUser(?User $user): self
  68.     {
  69.         $this->user $user;
  70.         return $this;
  71.     }
  72.     public function getHasAdminRole(): ?bool
  73.     {
  74.         return $this->hasAdminRole;
  75.     }
  76.     public function setHasAdminRole(bool $hasAdminRole): self
  77.     {
  78.         $this->hasAdminRole $hasAdminRole;
  79.         return $this;
  80.     }
  81.     public function getHasPostPublisherRole(): ?bool
  82.     {
  83.         return $this->hasPostPublisherRole;
  84.     }
  85.     public function setHasPostPublisherRole(bool $hasPostPublisherRole): self
  86.     {
  87.         $this->hasPostPublisherRole $hasPostPublisherRole;
  88.         return $this;
  89.     }
  90. }