| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class SchemaLoader implements SchemaLoaderInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var LoaderInterface |
||
| 28 | */ |
||
| 29 | private $loader; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var DereferencerInterface |
||
| 33 | */ |
||
| 34 | private $dereferencer; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The loaded JSON schemas. |
||
| 38 | * |
||
| 39 | * @var array |
||
| 40 | */ |
||
| 41 | private $schemas = []; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Constructs a new {@see SchemaLoader} instance. |
||
| 45 | */ |
||
| 46 | public function __construct(LoaderInterface $loader, DereferencerInterface $dereferencer) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function load(string $file): stdClass |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | public function getFileResource(string $file): ?ResourceInterface |
||
| 79 |