-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9da41b0
commit 3e9f6fb
Showing
3 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace JsonSchema; | ||
|
||
interface SchemaStorageInterface | ||
{ | ||
/** | ||
* Adds schema with given identifier | ||
* @param string $id | ||
* @param object $schema | ||
*/ | ||
public function addSchema($id, $schema = null); | ||
|
||
/** | ||
* Returns schema for given identifier, or null if it does not exist | ||
* @param string $id | ||
* @return object | ||
*/ | ||
public function getSchema($id); | ||
|
||
/** | ||
* Returns schema for given reference with all sub-references resolved | ||
* @param string $ref | ||
* @return object | ||
*/ | ||
public function resolveRef($ref); | ||
|
||
/** | ||
* Returns schema referenced by '$ref' property | ||
* @param mixed $refSchema | ||
* @return object | ||
*/ | ||
public function resolveRefSchema($refSchema); | ||
} |