Made most classes final (#310)

* Made most classes final

* bugfix
This commit is contained in:
Tobias Nyholm 2017-03-26 10:49:33 +02:00 committed by GitHub
parent d2638a0457
commit 0eb15969b9
7 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ use Mailgun\Exception\InvalidArgumentException;
* *
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/ */
class Assert extends \Webmozart\Assert\Assert final class Assert extends \Webmozart\Assert\Assert
{ {
protected static function reportInvalidArgument($message) protected static function reportInvalidArgument($message)
{ {

View File

@ -19,7 +19,7 @@ use Psr\Http\Message\ResponseInterface;
* *
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/ */
class History implements Journal final class History implements Journal
{ {
/** /**
* @var ResponseInterface * @var ResponseInterface

View File

@ -22,7 +22,7 @@ use Mailgun\HttpClient\Plugin\History;
* *
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/ */
class HttpClientConfigurator final class HttpClientConfigurator
{ {
/** /**
* @var string * @var string

View File

@ -17,7 +17,7 @@ use Psr\Http\Message\ResponseInterface;
* *
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/ */
class ArrayHydrator implements Hydrator final class ArrayHydrator implements Hydrator
{ {
/** /**
* @param ResponseInterface $response * @param ResponseInterface $response

View File

@ -18,7 +18,7 @@ use Psr\Http\Message\ResponseInterface;
* *
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/ */
class ModelHydrator implements Hydrator final class ModelHydrator implements Hydrator
{ {
/** /**
* @param ResponseInterface $response * @param ResponseInterface $response

View File

@ -16,7 +16,7 @@ use Psr\Http\Message\ResponseInterface;
* *
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/ */
class NoopHydrator implements Hydrator final class NoopHydrator implements Hydrator
{ {
/** /**
* @param ResponseInterface $response * @param ResponseInterface $response

View File

@ -23,7 +23,7 @@ class MessageBuilderHeaderTest extends \PHPUnit_Framework_TestCase
}; };
// Create the mocked mailgun client. // Create the mocked mailgun client.
$mailgun = MockedMailgun::create($this, 'POST', 'domain/messages', [], $messageValidator); $mailgun = MockedMailgun::createMock($this, 'POST', 'domain/messages', [], $messageValidator);
$builder = $mailgun->MessageBuilder(); $builder = $mailgun->MessageBuilder();