smsgateway/src/SmsGateway/Sender/GnokiiSender.php
Gergely Polonkai (W00d5t0ck) 61d0399828 Some updates
2012-09-25 19:20:56 +02:00

23 lines
464 B
PHP

<?php
namespace SmsGateway\Sender;
use SmsGateway\SenderInterface;
class GnokiiSender implements SenderInterface
{
private $gnokiiPath;
public function __construct($gnokiiPath)
{
$this->gnokiiPath = $gnokiiPath;
if (!is_executable($this->gnokiiPath)) {
throw new \Exception('Specified Gnokii executable is not executable by me!');
}
public function send($recipient, $message)
{
return true;
}
}