\JsonSchema\Uri\RetrieversPredefinedArray

URI retrieved based on a predefined array of schemas

Examples

= new PredefinedArray(array( 'http://acme.com/schemas/person#' => '{ ... }', 'http://acme.com/schemas/address#' => '{ ... }', )) $schema = $retriever->retrieve('http://acme.com/schemas/person#');

** File not found : $retriever **

Summary

Methods
Properties
Constants
getContentType()
__construct()
retrieve()
No public properties found
No constants found
No protected methods found
$contentType
N/A
No private methods found
$schemas
N/A

Properties

$contentType

$contentType : string

Media content type

Type

string

$schemas

$schemas : array

Contains schemas as URI => JSON

Type

array

Methods

getContentType()

getContentType() : string

Get media content type

Returns

string

__construct()

__construct(array  $schemas, string  $contentType = \JsonSchema\Validator::SCHEMA_MEDIA_TYPE) 

Constructor

Parameters

array $schemas
string $contentType

retrieve()

retrieve(  $uri) 

{@inheritdoc}

Parameters

$uri