Factory function. Creates a StreamConsumer-derived object for the given
type.
public static factory ( string $user, string $type, mixed $definition, string $eventHandler ) : DataSift_StreamConsumer | ||
$user | string | Use DataSift_User object. |
$type | string | Use the TYPE_ constants |
$definition | mixed | CSDL string or a Definition object. |
$eventHandler | string | The object that will receive events. |
Résultat | DataSift_StreamConsumer | The consumer object |