| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function build(): Definition |
||
| 25 | { |
||
| 26 | $schema = $this->bind(new SchemaDefinition($this->document, $this->findName())); |
||
| 27 | |||
| 28 | foreach ($this->ast as $child) { |
||
| 29 | $this->async(function () use ($child, $schema) { |
||
| 30 | $this->buildField($child, $schema); |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $schema; |
||
| 35 | } |
||
| 36 | |||
| 68 |