2017-05-16 15:20:33 +02:00
|
|
|
<?php
|
2013-08-08 10:39:44 -07:00
|
|
|
|
2016-09-18 09:56:14 +02:00
|
|
|
/*
|
2017-11-22 00:37:04 -08:00
|
|
|
* Copyright (C) 2013 Mailgun
|
2016-09-18 09:56:14 +02:00
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
2016-12-06 12:12:52 -06:00
|
|
|
* of the MIT license. See the LICENSE file for details.
|
2016-09-18 09:56:14 +02:00
|
|
|
*/
|
|
|
|
|
2014-05-13 14:25:26 +01:00
|
|
|
namespace Mailgun\Tests\Mock;
|
2013-08-08 10:39:44 -07:00
|
|
|
|
2014-05-13 14:25:26 +01:00
|
|
|
use Mailgun\Mailgun as Base;
|
|
|
|
use Mailgun\Tests\Mock\Connection\TestBroker;
|
2013-08-08 10:39:44 -07:00
|
|
|
|
2014-05-13 14:25:26 +01:00
|
|
|
class Mailgun extends Base
|
2013-08-08 10:39:44 -07:00
|
|
|
{
|
2014-05-14 14:06:05 +01:00
|
|
|
protected $debug;
|
2017-12-19 18:38:09 +01:00
|
|
|
|
2014-05-14 14:06:05 +01:00
|
|
|
protected $restClient;
|
|
|
|
|
2016-07-24 07:42:47 -04:00
|
|
|
public function __construct($apiKey = null, $apiEndpoint = 'api.mailgun.net', $apiVersion = 'v3')
|
2014-05-14 14:06:05 +01:00
|
|
|
{
|
|
|
|
$this->restClient = new TestBroker($apiKey, $apiEndpoint, $apiVersion);
|
|
|
|
}
|
|
|
|
}
|