| 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 <[email protected]> |
| 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 |
} |