Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
36 | 7 | private function parse($contents) |
|
37 | { |
||
38 | 7 | $data = CollectionUtils::toMap($contents); |
|
39 | |||
40 | 7 | $this->examples = $data->get('examples', new Map()); |
|
41 | 7 | $this->headers = new Headers($data->get('headers')); |
|
42 | |||
43 | // parts |
||
44 | 7 | $this->parseRef($data); |
|
45 | 7 | $this->parseDescription($data); |
|
46 | 7 | $this->parseSchema($data); |
|
47 | 7 | $this->parseExtensions($data); |
|
48 | 7 | } |
|
49 | |||
83 |