robotdance/php-json-schema

View on GitHub
src/JsonSchema/UriRetrieverInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;

/**
 * @package JsonSchema
 */
interface UriRetrieverInterface
{
    /**
     * Retrieve a URI
     *
     * @param string $uri JSON Schema URI
     * @param null|string $baseUri
     * @return object JSON Schema contents
     */
    public function retrieve($uri, $baseUri = null);
}