\JsonSchemaSchemaStorageInterface

Summary

Methods
Constants
addSchema()
getSchema()
resolveRef()
resolveRefSchema()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addSchema()

addSchema(string  $id, object  $schema = null) 

Adds schema with given identifier

Parameters

string $id
object $schema

getSchema()

getSchema(string  $id) : object

Returns schema for given identifier, or null if it does not exist

Parameters

string $id

Returns

object

resolveRef()

resolveRef(string  $ref) : object

Returns schema for given reference with all sub-references resolved

Parameters

string $ref

Returns

object

resolveRefSchema()

resolveRefSchema(mixed  $refSchema) : object

Returns schema referenced by '$ref' property

Parameters

mixed $refSchema

Returns

object