1 | <?php |
||
8 | final class JsonSchemaScopeResolver implements ScopeResolverInterface |
||
9 | { |
||
10 | const KEYWORD_DRAFT_4 = 'id'; |
||
11 | const KEYWORD_DRAFT_6 = '$id'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $keyword; |
||
17 | |||
18 | /** |
||
19 | * @param string $keyword |
||
20 | */ |
||
21 | 2 | public function __construct($keyword) |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 2 | public function resolve($schema, $currentPointer, $currentScope) |
|
44 | } |
||
45 |