MCP PHP SDK

PendingAuthorization implements JsonSerializable

FinalYes
Tags
author

bbdu3 ergouyang854@gmail.com

Table of Contents

Interfaces

JsonSerializable

Properties

$clientId  : string
$codeVerifier  : string
$expiresAt  : int
$metadata  : AuthorizationServerMetadata
$offlineAccessRefused  : bool
$redirectUri  : string
$registration  : ClientRegistration|null
$resource  : string
$scopes  : array<string|int, mixed>
$state  : string

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string, mixed>

Properties

Methods

__construct()

public __construct(string $state, string $codeVerifier, string $redirectUri, string $resource, array<string|int, string> $scopes, AuthorizationServerMetadata $metadata, string $clientId, int $expiresAt[, bool $offlineAccessRefused = false ][, ClientRegistration|null $registration = null ]) : mixed
Parameters
$state : string
$codeVerifier : string
$redirectUri : string
$resource : string
$scopes : array<string|int, string>
$metadata : AuthorizationServerMetadata
$clientId : string
$expiresAt : int
$offlineAccessRefused : bool = false
$registration : ClientRegistration|null = null

fromArray()

public static fromArray(array<string, mixed> $data) : self
Parameters
$data : array<string, mixed>
Tags
throws
InvalidArgumentException

when the record is incomplete or malformed

Return values
self

jsonSerialize()

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results