lib/DataSift/Definition.php
public function getConsumer($type, $eventHandler)
    {
        return DataSift_StreamConsumer::factory($this->_user, $type, $this, $eventHandler);
    }
public function getConsumer($type, $eventHandler)
    {
        return DataSift_StreamConsumer::factory($this->_user, $type, $this, $eventHandler);
    }
public function getConsumer ( $ type , $ eventHandler ) { return DataSift_StreamConsumer :: factory ( $ this -> _user , $ type , $ this , $ eventHandler ) ; }
Returns a DataSift_StreamConsumer-derived object for this definition,
for the given type.

@param string                               $type         The consumer type for which to construct a consumer.
@param DataSift_IStreamConsumerEventHandler $eventHandler An instance of DataSift_IStreamConsumerEventHandler

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