Skip to content

Commit

Permalink
chore: removed final keyword on classes to make them mockable
Browse files Browse the repository at this point in the history
  • Loading branch information
frknasir committed Apr 7, 2023
1 parent ea71795 commit 9c613a0
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 27 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/API/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
use StarfolkSoftware\Paystack\Options\Customer as CustomerOptions;

final class Customer extends ApiAbstract
class Customer extends ApiAbstract
{
/**
* Creates a new customer
Expand Down
2 changes: 1 addition & 1 deletion src/API/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
use StarfolkSoftware\Paystack\Options\Invoice as InvoiceOptions;

final class Invoice extends ApiAbstract
class Invoice extends ApiAbstract
{
/**
* Creates a new invoice
Expand Down
2 changes: 1 addition & 1 deletion src/API/Plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
use StarfolkSoftware\Paystack\Options\Plan as PlanOptions;

final class Plan extends ApiAbstract
class Plan extends ApiAbstract
{
/**
* Creates a new plan
Expand Down
2 changes: 1 addition & 1 deletion src/API/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
use StarfolkSoftware\Paystack\Options\Subscription as SubscriptionOptions;

final class Subscription extends ApiAbstract
class Subscription extends ApiAbstract
{
/**
* Creates a new subscription
Expand Down
2 changes: 1 addition & 1 deletion src/API/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
use StarfolkSoftware\Paystack\Options\Transaction as TransactionOptions;

final class Transaction extends ApiAbstract
class Transaction extends ApiAbstract
{
/**
* Initialize Transaction
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* Website: http://github.com/starfolksoftware/paystack-php
*/
final class Client
class Client
{
/** @var ClientBuilder $clientBuilder */
private ClientBuilder $clientBuilder;
Expand Down
2 changes: 1 addition & 1 deletion src/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;

final class ClientBuilder
class ClientBuilder
{
private ClientInterface $httpClient;

Expand Down
2 changes: 1 addition & 1 deletion src/HttpClient/Message/ResponseMediator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psr\Http\Message\ResponseInterface;

final class ResponseMediator
class ResponseMediator
{
public static function getContent(ResponseInterface $response): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Psr\Http\Message\UriInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class Options
class Options
{
private array $options;

Expand Down
2 changes: 1 addition & 1 deletion src/Options/Customer/CreateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class CreateOptions extends OptionsAbstract
class CreateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Customer/ReadAllOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ReadAllOptions extends OptionsAbstract
class ReadAllOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Customer/UpdateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class UpdateOptions extends OptionsAbstract
class UpdateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Customer/ValidateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ValidateOptions extends OptionsAbstract
class ValidateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Invoice/CreateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class CreateOptions extends OptionsAbstract
class CreateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Invoice/ReadAllOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ReadAllOptions extends OptionsAbstract
class ReadAllOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Invoice/UpdateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class UpdateOptions extends OptionsAbstract
class UpdateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Plan/CreateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class CreateOptions extends OptionsAbstract
class CreateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Plan/ReadAllOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ReadAllOptions extends OptionsAbstract
class ReadAllOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Plan/UpdateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class UpdateOptions extends OptionsAbstract
class UpdateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Subscription/CreateOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class CreateOptions extends OptionsAbstract
class CreateOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Subscription/ReadAllOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ReadAllOptions extends OptionsAbstract
class ReadAllOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Transaction/ChargeOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ChargeOptions extends OptionsAbstract
class ChargeOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Transaction/ExportOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ExportOptions extends OptionsAbstract
class ExportOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Transaction/InitializeOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class InitializeOptions extends OptionsAbstract
class InitializeOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Transaction/PartialDebitOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class PartialDebitOptions extends OptionsAbstract
class PartialDebitOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Transaction/ReadAllOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class ReadAllOptions extends OptionsAbstract
class ReadAllOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down
2 changes: 1 addition & 1 deletion src/Options/Transaction/StatsOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use StarfolkSoftware\Paystack\Abstracts\OptionsAbstract;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class StatsOptions extends OptionsAbstract
class StatsOptions extends OptionsAbstract
{
/**
* Set defaults, allowed types and values of the options.
Expand Down

0 comments on commit 9c613a0

Please sign in to comment.