| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 23 | protected function build(TypeConfigInterface $config) |
||
| 24 | { |
||
| 25 | $config |
||
| 26 | ->addField('unionList', new ListType(new TestUnionType()), [ |
||
| 27 | 'resolve' => function() { |
||
| 28 | return UnionTestData::getList(); |
||
| 29 | } |
||
| 30 | ]) |
||
| 31 | ->addField('oneUnion', new TestUnionType(), [ |
||
| 32 | 'resolve' => function () { |
||
| 33 | return UnionTestData::getOne(); |
||
| 34 | } |
||
| 35 | ]); |
||
| 36 | } |
||
| 37 | |||
| 45 | } |