/** * Called for each deletion notification consumed. * * @param DataSift_StreamConsumer $consumer The consumer sending the * event. * @param array $interaction The interaction data. * @param string $hash The hash of the stream that * matched this interaction. * * @return void */ public function onDeleted($consumer, $interaction, $hash) { // Remove from database (safely) Interaction::remove($interaction['interaction']['id']); }