| 1 | <?php | ||
| 10 | final class ArrayLoader implements LoaderInterface | ||
| 11 | { | ||
| 12 | /** | ||
| 13 | * @var array | ||
| 14 | */ | ||
| 15 | private $schemas; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * @var JsonDecoderInterface | ||
| 19 | */ | ||
| 20 | private $jsonDecoder; | ||
| 21 | |||
| 22 | /** | ||
| 23 | * @param array $schemas A map of schemas where path => schema.The schema should be a string or the | ||
| 24 | * object resulting from a json_decode call. | ||
| 25 | * @param JsonDecoderInterface $jsonDecoder | ||
| 26 | */ | ||
| 27 | 18 | public function __construct(array $schemas, JsonDecoderInterface $jsonDecoder = null) | |
| 32 | |||
| 33 | /** | ||
| 34 |      * {@inheritdoc} | ||
| 35 | */ | ||
| 36 | 12 | public function load($path) | |
| 52 | } | ||
| 53 |