20 lines
533 B
PHP
20 lines
533 B
PHP
<?php
|
|
namespace SmsGateway;
|
|
|
|
interface SenderInterface
|
|
{
|
|
public function setLogger(LoggerInterface $logger);
|
|
|
|
public function getLogger();
|
|
|
|
/**
|
|
*
|
|
* @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
|
|
*/
|
|
public function send($username, $recipient, $message, array $passwordLocations);
|
|
}
|