| 1 | <?php |
||
| 13 | class ChainableLoader implements Loader |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Loader |
||
| 17 | */ |
||
| 18 | private $firstLoader; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Loader |
||
| 22 | */ |
||
| 23 | private $secondLoader; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param \League\JsonGuard\Loader $firstLoader |
||
| 27 | * @param \League\JsonGuard\Loader $secondLoader |
||
| 28 | */ |
||
| 29 | 62 | public function __construct(Loader $firstLoader, Loader $secondLoader) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Load the json schema from the given path. |
||
| 37 | * |
||
| 38 | * @param string $path The path to load, without the protocol. |
||
| 39 | * |
||
| 40 | * @return object The object resulting from a json_decode of the loaded path. |
||
| 41 | */ |
||
| 42 | 8 | public function load($path) |
|
| 50 | } |
||
| 51 |