public function sendMultiple(array $messages) { $successCount = 0; foreach ($messages as $message) { if ($this->send($message)) { $successCount++; } } return $successCount; }