2012-09-25 16:56:03 +00:00
|
|
|
<?php
|
|
|
|
namespace SmsGateway;
|
|
|
|
|
|
|
|
interface SenderInterface
|
|
|
|
{
|
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
|
|
|
|
public function send($recipient, $message);
|
|
|
|
}
|