4 * This file is part of the JsonSchema package.
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
10 namespace JsonSchema\Uri\Retrievers;
13 * Interface for URI retrievers
15 * @author Sander Coolen <sander@jibber.nl>
17 interface UriRetrieverInterface
20 * Retrieve a schema from the specified URI
22 * @param string $uri URI that resolves to a JSON schema
24 * @throws \JsonSchema\Exception\ResourceNotFoundException
26 * @return mixed string|null
28 public function retrieve($uri);
31 * Get media content type
35 public function getContentType();