| Total Complexity | 6 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class UserPetUnion implements UnionTypeInterface, ResolveTypeAwareInterface |
||
| 12 | { |
||
| 13 | public function getName(): string |
||
| 14 | { |
||
| 15 | return 'UserPetUnion'; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getDescription(): ?string |
||
| 19 | { |
||
| 20 | return null; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getTypes(): iterable |
||
| 24 | { |
||
| 25 | yield 'User'; |
||
| 26 | yield Pet::class; |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function resolveType(mixed $value, mixed $context, Webonyx\ResolveInfo $info): ?string |
||
| 40 | } |
||
| 41 | } |
||
| 42 |