Constructor. Do not use this directly, use the factory method instead.
protected __construct ( DataSift_User $user, mixed $definition, DataSift_IStreamConsumerEventHandler $eventHandler ) | ||
$user | DataSift_User | The user this consumer will run as. |
$definition | mixed | CSDL string, a Definition object, or an array of hashes. |
$eventHandler | DataSift_IStreamConsumerEventHandler | The object that will receive events. |
/** * Constructor. * * @param DataSift_User $user The authenticated user * @param mixed $definition CSDL string, Definition object, or array of hashes * @param mixed $eventHandler An object that implements IStreamConsumerEventHandler * * @throws DataSift_Exception_InvalidData * @throws DataSift_Exceotion_CompileFailed * @throws DataSift_Exception_APIError * @see DataSift_StreamConsumer::__construct */ public function __construct($user, $definition, $eventHandler) { parent::__construct($user, $definition, $eventHandler); }