| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 19 | public function build(array $schema, Properties $properties): Structure |
|
| 40 | { |
||
| 41 | 19 | foreach ($this->structures as $structure) { |
|
| 42 | try { |
||
| 43 | 19 | return [$structure, 'build']($schema, $this, $properties); |
|
| 44 | 19 | } catch (SchemaNotParseable $e) { |
|
| 45 | //pass |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | 4 | throw new SchemaNotParseable('', 0, $e ?? null); |
|
| 50 | } |
||
| 64 |