\JsonSchema\Uri\RetrieversFileGetContents

Tries to retrieve JSON schemas from a URI using file_get_contents()

Summary

Methods
Properties
Constants
getContentType()
retrieve()
No public properties found
No constants found
getContentTypeMatchInHeader()
$contentType
$messageBody
N/A
fetchContentType()
No private properties found
N/A

Properties

$contentType

$contentType : string

Media content type

Type

string

$messageBody

$messageBody : 

Type

Methods

getContentType()

getContentType() : string

Get media content type

Returns

string

retrieve()

retrieve(  $uri) 

{@inheritdoc}

Parameters

$uri

getContentTypeMatchInHeader()

getContentTypeMatchInHeader(string  $header) : string|null

Parameters

string $header

Returns

string|null

fetchContentType()

fetchContentType(array  $headers) : boolean

Parameters

array $headers

HTTP Response Headers

Returns

boolean —

Whether the Content-Type header was found or not