container = $container; $this->nexmoMessage = $nexmoMessage; } /** * @param $number * @param null $fromName * @param $message * @param null $unicode * @param int $status_report_req * @return array|bool|\Nexmo\stdClass */ public function send($number,$fromName=null,$message,$unicode=null, $status_report_req=0) { if($fromName===null) $fromName = $this->container->getParameter('jhg_nexmo.from_name'); return $this->nexmoMessage->sendText($number,$fromName,$message,$unicode,$status_report_req); } }