blob: c324998990f6978c9ec0095930d25fdaf87237f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?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\Uri\Retrievers;
/**
* Interface for URI retrievers
*
* @author Sander Coolen <sander@jibber.nl>
*/
interface UriRetrieverInterface
{
/**
* Retrieve a schema from the specified URI
* @param string $uri URI that resolves to a JSON schema
* @throws \JsonSchema\Exception\ResourceNotFoundException
* @return mixed string|null
*/
public function retrieve($uri);
/**
* Get media content type
* @return string
*/
public function getContentType();
}
|