MCP PHP SDK

ResourceContents implements JsonSerializable

AbstractYes

The contents of a specific resource or sub-resource.

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Interfaces

JsonSerializable

Properties

$meta  : array<string|int, mixed>|null
$mimeType  : string|null
$uri  : string

Methods

__construct()  : mixed
jsonSerialize()  : ResourceContentsData

Properties

Methods

__construct()

public __construct(string $uri[, string|null $mimeType = null ][, array<string, mixed>|null $meta = null ]) : mixed
Parameters
$uri : string

the URI of the resource or sub-resource

$mimeType : string|null = null

the MIME type of the resource or sub-resource

$meta : array<string, mixed>|null = null

Optional metadata

jsonSerialize()

public jsonSerialize() : ResourceContentsData
Return values
ResourceContentsData

        
On this page

Search results