secure-custom-fields
/
vendor
/
justinrainbow
/
json-schema
/
src
/
JsonSchema
/
SchemaStorageInterface.php
Constraints
7 months ago
Entity
7 months ago
Exception
7 months ago
Iterator
7 months ago
Uri
7 months ago
Rfc3339.php
7 months ago
SchemaStorage.php
7 months ago
SchemaStorageInterface.php
7 months ago
UriResolverInterface.php
7 months ago
UriRetrieverInterface.php
7 months ago
Validator.php
7 months ago
SchemaStorageInterface.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JsonSchema; |
| 4 | |
| 5 | interface SchemaStorageInterface |
| 6 | { |
| 7 | /** |
| 8 | * Adds schema with given identifier |
| 9 | * |
| 10 | * @param string $id |
| 11 | * @param object $schema |
| 12 | */ |
| 13 | public function addSchema($id, $schema = null); |
| 14 | |
| 15 | /** |
| 16 | * Returns schema for given identifier, or null if it does not exist |
| 17 | * |
| 18 | * @param string $id |
| 19 | * |
| 20 | * @return object |
| 21 | */ |
| 22 | public function getSchema($id); |
| 23 | |
| 24 | /** |
| 25 | * Returns schema for given reference with all sub-references resolved |
| 26 | * |
| 27 | * @param string $ref |
| 28 | * |
| 29 | * @return object |
| 30 | */ |
| 31 | public function resolveRef($ref); |
| 32 | |
| 33 | /** |
| 34 | * Returns schema referenced by '$ref' property |
| 35 | * |
| 36 | * @param mixed $refSchema |
| 37 | * |
| 38 | * @return object |
| 39 | */ |
| 40 | public function resolveRefSchema($refSchema); |
| 41 | } |
| 42 |