ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
TMBOY
Date:
Tue Jul 18 16:27:22 2017 +0800
Revision:
44:c1d8923072ba
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMBOY 44:c1d8923072ba 1 <?php
TMBOY 44:c1d8923072ba 2
TMBOY 44:c1d8923072ba 3 /*
TMBOY 44:c1d8923072ba 4 * This file is part of the JsonSchema package.
TMBOY 44:c1d8923072ba 5 *
TMBOY 44:c1d8923072ba 6 * For the full copyright and license information, please view the LICENSE
TMBOY 44:c1d8923072ba 7 * file that was distributed with this source code.
TMBOY 44:c1d8923072ba 8 */
TMBOY 44:c1d8923072ba 9
TMBOY 44:c1d8923072ba 10 namespace JsonSchema\Uri\Retrievers;
TMBOY 44:c1d8923072ba 11
TMBOY 44:c1d8923072ba 12 /**
TMBOY 44:c1d8923072ba 13 * Interface for URI retrievers
TMBOY 44:c1d8923072ba 14 *
TMBOY 44:c1d8923072ba 15 * @author Sander Coolen <sander@jibber.nl>
TMBOY 44:c1d8923072ba 16 */
TMBOY 44:c1d8923072ba 17 interface UriRetrieverInterface
TMBOY 44:c1d8923072ba 18 {
TMBOY 44:c1d8923072ba 19 /**
TMBOY 44:c1d8923072ba 20 * Retrieve a schema from the specified URI
TMBOY 44:c1d8923072ba 21 * @param string $uri URI that resolves to a JSON schema
TMBOY 44:c1d8923072ba 22 * @throws \JsonSchema\Exception\ResourceNotFoundException
TMBOY 44:c1d8923072ba 23 * @return mixed string|null
TMBOY 44:c1d8923072ba 24 */
TMBOY 44:c1d8923072ba 25 public function retrieve($uri);
TMBOY 44:c1d8923072ba 26
TMBOY 44:c1d8923072ba 27 /**
TMBOY 44:c1d8923072ba 28 * Get media content type
TMBOY 44:c1d8923072ba 29 * @return string
TMBOY 44:c1d8923072ba 30 */
TMBOY 44:c1d8923072ba 31 public function getContentType();
TMBOY 44:c1d8923072ba 32 }