private function generateDataStream(array $record) { return sprintf("%s %s\n", $this->token, $record['formatted']); }