mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 17:36:29 +02:00
Add uid for uniq identification by adapter of a sended sms. Usefull for tracking status
This commit is contained in:
parent
d8839a57d0
commit
89459a0285
5 changed files with 58 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue