1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;
}
}