public static function castKafkaConsumer(KafkaConsumer
$c, array
$a, Stub
$stub, bool
$isNested) { $prefix = Caster::PREFIX_VIRTUAL;
try { $assignment =
$c->
getAssignment();
} catch (RdKafkaException
) { $assignment =
[];
} $a +=
[ $prefix.'subscription' =>
$c->
getSubscription(),
$prefix.'assignment' =>
$assignment,
];
$a += self::
extractMetadata($c);
return $a;
} /**
* @return array
*/