]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / justinrainbow / json-schema / src / JsonSchema / UriRetrieverInterface.php
diff --git a/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php b/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php
new file mode 100644 (file)
index 0000000..94ad0cb
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is part of the JsonSchema package.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace JsonSchema;
+
+/**
+ * @package JsonSchema
+ */
+interface UriRetrieverInterface
+{
+    /**
+     * Retrieve a URI
+     *
+     * @param string      $uri     JSON Schema URI
+     * @param null|string $baseUri
+     *
+     * @return object JSON Schema contents
+     */
+    public function retrieve($uri, $baseUri = null);
+}