2012-09-25 16:56:03 +00:00
|
|
|
<?php
|
|
|
|
namespace SmsGateway;
|
|
|
|
|
|
|
|
interface SenderInterface
|
|
|
|
{
|
2012-10-06 21:17:20 +00:00
|
|
|
public function setLogger(LoggerInterface $logger);
|
|
|
|
|
|
|
|
public function getLogger();
|
|
|
|
|
2012-09-25 17:20:56 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param string $recipient
|
|
|
|
* @param string $message
|
|
|
|
* @return boolean true upon success. On error, throws exceptions.
|
|
|
|
* @throws Exception Upon sending error. Gnokii output will be
|
|
|
|
* stored in $e->message
|
2012-10-06 21:17:20 +00:00
|
|
|
*/
|
2012-10-08 11:00:27 +00:00
|
|
|
public function send($username, $recipient, $message, array $passwordLocations);
|
2012-09-25 17:20:56 +00:00
|
|
|
}
|