class Initialize implements Method

Methods

__construct(Implementation $clientInfo, ProtocolVersion $protocolVersion = ProtocolVersion::V2025_11_25)

Create an initialization request.

string
method()

Get the initialization method name.

array
params()

Get the client information and requested protocol version.

TResult
handle(Protocol $protocol)

Initialize the connection and hydrate the server's response.

Details

at line 21
__construct(Implementation $clientInfo, ProtocolVersion $protocolVersion = ProtocolVersion::V2025_11_25)

Create an initialization request.

Parameters

Implementation $clientInfo
ProtocolVersion $protocolVersion

at line 30
string method()

Get the initialization method name.

Return Value

string

at line 40
array params()

Get the client information and requested protocol version.

Return Value

array

at line 52
TResult handle(Protocol $protocol)

Initialize the connection and hydrate the server's response.

Parameters

Protocol $protocol

Return Value

TResult