id; } public function getRole(): ?Role { return $this->role; } public function setRole(Role $role): RolePermission { $this->role = $role; return $this; } public function getPermission(): ?string { return $this->permission; } public function setPermission(string $permission): RolePermission { $this->permission = $permission; return $this; } /** * Alias for isValue() */ public function isAllowed(): bool { return $this->allowed; } public function setAllowed(bool $allowed): RolePermission { $this->allowed = $allowed; return $this; } }