lib/DataSift/User.php
public function getConsumer($type, $hash, $eventHandler)
    {
        return DataSift_StreamConsumer::factory(
            $this,
            $type,
            new DataSift_Definition($this, false, $hash),
            $eventHandler
        );
    }
public function getConsumer($type, $hash, $eventHandler)
    {
        return DataSift_StreamConsumer::factory(
            $this,
            $type,
            new DataSift_Definition($this, false, $hash),
            $eventHandler
        );
    }
public function getConsumer ( $ type , $ hash , $ eventHandler ) { return DataSift_StreamConsumer :: factory ( $ this , $ type , new DataSift_Definition ( $ this , false , $ hash ) , $ eventHandler ) ; }
Returns a DataSift_StreamConsumer-derived object for the given hash,
for the given type.

@param string                               $type         The consumer type for which to construct a consumer.
@param string                               $hash         The hash to be consumed.
@param DataSift_IStreamConsumerEventHandler $eventHandler The object that will receive events.

@return DataSift_StreamConsumer The consumer object.
@throws DataSift_Exception_InvalidData
@see DataSift_StreamConsumer
Returns a DataSift_StreamConsumer - derived object for the given hash for the given type .