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