1
0
Fork 0
smsgateway/src/SmsGateway/SenderInterface.php

20 lines
533 B
PHP
Raw Normal View History

<?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
*/
public function send($username, $recipient, $message, array $passwordLocations);
2012-09-25 17:20:56 +00:00
}