示例#1
0
 /**
  * Send a single sms or multiple sms
  *
  * @param  mixed $sms an instance of Messenger\Sms or an array with multiple
  *                    	 Messenger\Sms instances
  * @return mixed      the array of responses or the instance of the
  *                    response itself in case of only 1 sent sms
  */
 public function sendSms($sms)
 {
     if ($sms instanceof Sms) {
         $sms = [$sms];
     }
     $response = $this->driver->sendSms($sms);
     return count($response) > 1 ? $response : $response[0];
 }