<?phpnamespace App\Entity\Program;use App\Entity\User;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ProgramCrewMemberRepository") */class ProgramCrewMember{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\Program\Program",inversedBy="crews") * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $program; /** * @ORM\ManyToOne(targetEntity="App\Entity\User",inversedBy="crew") * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $user; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="boolean") * Il peux modifier les infos et crew membre et chat * Pas de creation post / pas de suppression de post */ private $hasAdminRole; /** * @ORM\Column(type="boolean") * peux que crée des posts */ private $hasPostPublisherRole; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getProgram(): ?Program { return $this->program; } public function setProgram(?Program $program): self { $this->program = $program; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getHasAdminRole(): ?bool { return $this->hasAdminRole; } public function setHasAdminRole(bool $hasAdminRole): self { $this->hasAdminRole = $hasAdminRole; return $this; } public function getHasPostPublisherRole(): ?bool { return $this->hasPostPublisherRole; } public function setHasPostPublisherRole(bool $hasPostPublisherRole): self { $this->hasPostPublisherRole = $hasPostPublisherRole; return $this; }}