]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / justinrainbow / json-schema / src / JsonSchema / Uri / Retrievers / UriRetrieverInterface.php
1 <?php
2
3 /*
4  * This file is part of the JsonSchema package.
5  *
6  * For the full copyright and license information, please view the LICENSE
7  * file that was distributed with this source code.
8  */
9
10 namespace JsonSchema\Uri\Retrievers;
11
12 /**
13  * Interface for URI retrievers
14  *
15  * @author Sander Coolen <sander@jibber.nl>
16  */
17 interface UriRetrieverInterface
18 {
19     /**
20      * Retrieve a schema from the specified URI
21      *
22      * @param string $uri URI that resolves to a JSON schema
23      *
24      * @throws \JsonSchema\Exception\ResourceNotFoundException
25      *
26      * @return mixed string|null
27      */
28     public function retrieve($uri);
29
30     /**
31      * Get media content type
32      *
33      * @return string
34      */
35     public function getContentType();
36 }