| 1 | <?php |
||
| 9 | class ArrayLoader implements Loader |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private $schemas; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array $schemas A map of schemas where path => schema. The schema should be a string or the |
||
| 18 | * object resulting from a json_decode call. |
||
| 19 | */ |
||
| 20 | 70 | public function __construct(array $schemas) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 16 | public function load($path) |
|
| 44 | } |
||
| 45 |