Add uid for uniq identification by adapter of a sended sms. Usefull for tracking status

This commit is contained in:
osaajani 2020-01-06 23:35:55 +01:00
parent d8839a57d0
commit 89459a0285
5 changed files with 58 additions and 10 deletions

View file

@ -51,9 +51,9 @@
* @param string $destination : Phone number to send the sms to
* @param string $text : Text of the SMS to send
* @param bool $flash : Is the SMS a Flash SMS
* @return bool : True if send, False else
* @return mixed Uid of the sended message if send, False else
*/
public function send (string $destination, string $text, boolean $flash) : boolean;
public function send (string $destination, string $text, boolean $flash) : mixed;
/**

View file

@ -66,11 +66,11 @@
* @param string $destination : Phone number to send the sms to
* @param string $text : Text of the SMS to send
* @param bool $flash : Is the SMS a Flash SMS
* @return bool : True if send, False else
* @return mixed Uid of the sended message if send, False else
*/
public function send (string $destination, string $text, boolean $flash) : boolean
public function send (string $destination, string $text, boolean $flash) : mixed
{
return true;
return uniqid();
}

View file

@ -66,11 +66,11 @@
* @param string $destination : Phone number to send the sms to
* @param string $text : Text of the SMS to send
* @param bool $flash : Is the SMS a Flash SMS
* @return bool : True if send, False else
* @return mixed Uid of the sended message if send, False else
*/
public function send (string $destination, string $text, boolean $flash) : boolean
public function send (string $destination, string $text, boolean $flash) : mixed
{
return true;
return uniqid();
}