public getConsumer ( string $type = DataSift_StreamConsumer::TYPE_HTTP, string $hash, DataSift_IStreamConsumerEventHandler $eventHandler ) : DataSift_StreamConsumer | ||
$type | string | The consumer type for which to construct a consumer. |
$hash | string | The hash to be consumed. |
$eventHandler | DataSift_IStreamConsumerEventHandler | The object that will receive events. |
Результат | DataSift_StreamConsumer | The consumer object. |