Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace HSkrasek\OpenAPI\Parsers; |
||
22 | public function parse(string $schemaPath): \stdClass |
||
23 | { |
||
24 | try { |
||
25 | return $this->dereferencer->dereference('file://' . $schemaPath); |
||
26 | } catch (DecodingException $decodingException) { |
||
27 | throw new ParseException($decodingException->getMessage()); |
||
28 | } |
||
29 | } |
||
30 | } |
||
31 |