2012-09-25 18:56:03 +02:00
|
|
|
<?php
|
|
|
|
|
namespace SmsGateway;
|
|
|
|
|
|
|
|
|
|
interface SenderInterface
|
|
|
|
|
{
|
2012-10-06 23:17:20 +02:00
|
|
|
public function setLogger(LoggerInterface $logger);
|
|
|
|
|
|
|
|
|
|
public function getLogger();
|
|
|
|
|
|
2012-09-25 19:20:56 +02: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 23:17:20 +02:00
|
|
|
*/
|
2012-10-08 13:00:27 +02:00
|
|
|
public function send($username, $recipient, $message, array $passwordLocations);
|
2012-09-25 19:20:56 +02:00
|
|
|
}
|