mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 13:52:24 +09:00
Refactor SMS classes to use a common spec format
This commit is contained in:
parent
af89fc432a
commit
582374295d
4 changed files with 272 additions and 160 deletions
|
|
@ -36,6 +36,13 @@ interface SMSInterface
|
|||
*/
|
||||
public static function getAPITypes();
|
||||
|
||||
/**
|
||||
* Get the spec for this SMS driver.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getAPISpec();
|
||||
|
||||
/**
|
||||
* Check if the current SMS driver is supported on this server.
|
||||
*
|
||||
|
|
@ -50,8 +57,8 @@ interface SMSInterface
|
|||
*
|
||||
* This method returns true on success and false on failure.
|
||||
*
|
||||
* @param object $message
|
||||
* @param array $messages
|
||||
* @return bool
|
||||
*/
|
||||
public function send(\Rhymix\Framework\SMS $message);
|
||||
public function send(array $messages);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue