$types */ public function unionType(array $types): string; /** * Check if type is nullable. */ public function isNullable(array $definition): bool; /** * Resolve type reference. */ public function resolveReference(string $ref): string; }