ResourceContents implements JsonSerializable
AbstractYes
The contents of a specific resource or sub-resource.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
Methods
- __construct() : mixed
- jsonSerialize() : ResourceContentsData
Properties
$meta read-only
public
array<string|int, mixed>|null
$meta
= null
$mimeType read-only
public
string|null
$mimeType
= null
$uri read-only
public
string
$uri
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