abstract |
|---|
readonly |
Context passed to a request handler. Carries metadata about the incoming request and exposes domain helpers for emitting out-of-band messages.
| Methods | ||
|---|---|---|
public
|
__construct(RequestId $requestId, Cancellation $cancellation, ?ProgressToken $progressToken, SenderInterface $sender)
|
# |
public
|
reportProgress(float $progress, ?float $total = null, ?string $message = null): void
|
# |
| Properties | |||
|---|---|---|---|
public
|
RequestId
|
$requestId
|
# |
public
|
Cancellation
|
$cancellation
|
# |
public
|
?ProgressToken
|
$progressToken
|
# |
protected
|
SenderInterface
|
$sender
|
# |