number = $number; $this->datas = $datas; } /** * Method called to send a SMS to a number * @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 mixed Uid of the sended message if send, False else */ public function send (string $destination, string $text, bool $flash) { return uniqid(); } /** * Method called to read SMSs of the number * @return array : Array of the sms reads */ public function read () : array { return []; } /** * Method called on reception of a status update notification for a SMS * @return mixed : False on error, else array ['uid' => uid of the sms, 'status' => New status of the sms ('unknown', 'delivered', 'failed')] */ public static function status_change_callback () { return false; } }