Skip to content

Commit

Permalink
Removed unnecessary proxy code
Browse files Browse the repository at this point in the history
  • Loading branch information
stymiee committed Jun 20, 2020
1 parent 3b01797 commit a43fe1e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 42 deletions.
7 changes: 1 addition & 6 deletions src/exceptions/AuthnetCannotSetParamsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace JohnConde\Authnet;

use Throwable;

/**
* Exception that is throw when when client code attempts to set a parameter directly (i.e. using __set())
*
Expand All @@ -27,8 +25,5 @@
*/
class AuthnetCannotSetParamsException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}
7 changes: 1 addition & 6 deletions src/exceptions/AuthnetCurlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace JohnConde\Authnet;

use Throwable;

/**
* Exception that is throw when cURL experiences an unexpected error
*
Expand All @@ -25,8 +23,5 @@
*/
class AuthnetCurlException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}
3 changes: 2 additions & 1 deletion src/exceptions/AuthnetException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace JohnConde\Authnet;

use Exception;
use Throwable;

/**
Expand All @@ -23,7 +24,7 @@
* @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0
* @link https://github.com/stymiee/authnetjson
*/
class AuthnetException extends \Exception
class AuthnetException extends Exception
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
Expand Down
7 changes: 1 addition & 6 deletions src/exceptions/AuthnetInvalidAmountException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace JohnConde\Authnet;

use Throwable;

/**
* Exception that is thrown when invalid amount to pay is provided for a SIM transaction
*
Expand All @@ -25,8 +23,5 @@
*/
class AuthnetInvalidAmountException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}
7 changes: 1 addition & 6 deletions src/exceptions/AuthnetInvalidCredentialsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace JohnConde\Authnet;

use Throwable;

/**
* Exception that is throw when invalid Authorize.Net API credentials are provided
*
Expand All @@ -25,8 +23,5 @@
*/
class AuthnetInvalidCredentialsException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}
7 changes: 1 addition & 6 deletions src/exceptions/AuthnetInvalidJsonException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace JohnConde\Authnet;

use Throwable;

/**
* Exception that is throw when invalid JSON is returned by the API
*
Expand All @@ -25,8 +23,5 @@
*/
class AuthnetInvalidJsonException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}
7 changes: 2 additions & 5 deletions src/exceptions/AuthnetInvalidServerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Throwable;

/**
* Exception that is throw when an invalid value is given for the $server paramater when
* Exception that is throw when an invalid value is given for the $server parameter when
* initiating an instance of the AuthnetJson class
*
* @author John Conde <stymiee@gmail.com>
Expand All @@ -26,8 +26,5 @@
*/
class AuthnetInvalidServerException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}
7 changes: 1 addition & 6 deletions src/exceptions/AuthnetTransactionResponseCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace JohnConde\Authnet;

use Throwable;

/**
* Exception that is throw when transaction response data is requested on an API call that does not return any
*
Expand All @@ -25,8 +23,5 @@
*/
class AuthnetTransactionResponseCallException extends AuthnetException
{
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}

}

0 comments on commit a43fe1e

Please sign in to comment.