id = $id; $this->label = $label; $this->key = $key; $this->secret = $secret; $this->callbackUrl = $callbackUrl; $this->roles = $roles; $this->ltiVersion = $ltiVersion; $this->toolClientId = $toolClientId; $this->toolDeploymentIds = $toolDeploymentIds; $this->toolAudience = $toolAudience; $this->toolOidcLoginInitiationUrl = $toolOidcLoginInitiationUrl; $this->toolLaunchUrl = $toolLaunchUrl; $this->toolPublicKey = $toolPublicKey; $this->toolIdentifier = $toolIdentifier; $this->toolName = $toolName; $this->toolJwksUrl = $toolJwksUrl; } public function getId(): string { return $this->id; } public function getLabel(): string { return $this->label; } public function getKey(): ?string { return $this->key; } public function getSecret(): ?string { return $this->secret; } public function getCallbackUrl(): ?string { return $this->callbackUrl; } public function getLtiVersion(): string { return $this->ltiVersion; } public function getToolIdentifier(): string { return $this->toolIdentifier; } public function getToolName(): string { return $this->toolName; } public function getToolJwksUrl(): ?string { return $this->toolJwksUrl; } public function getToolClientId(): string { return $this->toolClientId; } public function getToolDeploymentIds(): array { return $this->toolDeploymentIds; } public function getToolAudience(): string { return $this->toolAudience; } public function getToolOidcLoginInitiationUrl(): string { return $this->toolOidcLoginInitiationUrl; } public function getToolLaunchUrl(): string { return $this->toolLaunchUrl; } public function getToolPublicKey(): ?string { return $this->toolPublicKey; } /** * @inheritdoc */ public function jsonSerialize() { return [ 'id' => $this->getId(), 'uri' => $this->getId(), 'text' => $this->getLabel(), 'key' => $this->getKey(), 'secret' => $this->getSecret(), 'callback' => $this->getCallbackUrl(), 'roles' => $this->getRoles(), ]; } public function getRoles(): array { return $this->roles; } }