(PECL rdkafka >= 0.9.1)
Collection クラスはメタデータの項目のコレクションとして使われます。Countable と Iterableを実装し、count() と foreachを一緒に使うことができます。