Refactor SMS classes to use a common spec format

This commit is contained in:
Kijin Sung 2016-11-04 20:26:12 +09:00
parent af89fc432a
commit 582374295d
4 changed files with 272 additions and 160 deletions

View file

@ -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);
}