Skip to content

Commit 9c613a0

Browse files
committed
chore: removed final keyword on classes to make them mockable
1 parent ea71795 commit 9c613a0

28 files changed

Lines changed: 27 additions & 27 deletions

.DS_Store

8 KB
Binary file not shown.

src/API/Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
77
use StarfolkSoftware\Paystack\Options\Customer as CustomerOptions;
88

9-
final class Customer extends ApiAbstract
9+
class Customer extends ApiAbstract
1010
{
1111
/**
1212
* Creates a new customer

src/API/Invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
77
use StarfolkSoftware\Paystack\Options\Invoice as InvoiceOptions;
88

9-
final class Invoice extends ApiAbstract
9+
class Invoice extends ApiAbstract
1010
{
1111
/**
1212
* Creates a new invoice

src/API/Plan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
77
use StarfolkSoftware\Paystack\Options\Plan as PlanOptions;
88

9-
final class Plan extends ApiAbstract
9+
class Plan extends ApiAbstract
1010
{
1111
/**
1212
* Creates a new plan

src/API/Subscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
77
use StarfolkSoftware\Paystack\Options\Subscription as SubscriptionOptions;
88

9-
final class Subscription extends ApiAbstract
9+
class Subscription extends ApiAbstract
1010
{
1111
/**
1212
* Creates a new subscription

src/API/Transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use StarfolkSoftware\Paystack\HttpClient\Message\ResponseMediator;
77
use StarfolkSoftware\Paystack\Options\Transaction as TransactionOptions;
88

9-
final class Transaction extends ApiAbstract
9+
class Transaction extends ApiAbstract
1010
{
1111
/**
1212
* Initialize Transaction

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* Website: http://github.com/starfolksoftware/paystack-php
1616
*/
17-
final class Client
17+
class Client
1818
{
1919
/** @var ClientBuilder $clientBuilder */
2020
private ClientBuilder $clientBuilder;

src/ClientBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Psr\Http\Message\RequestFactoryInterface;
1313
use Psr\Http\Message\StreamFactoryInterface;
1414

15-
final class ClientBuilder
15+
class ClientBuilder
1616
{
1717
private ClientInterface $httpClient;
1818

src/HttpClient/Message/ResponseMediator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Psr\Http\Message\ResponseInterface;
66

7-
final class ResponseMediator
7+
class ResponseMediator
88
{
99
public static function getContent(ResponseInterface $response): array
1010
{

src/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Http\Message\UriInterface;
88
use Symfony\Component\OptionsResolver\OptionsResolver;
99

10-
final class Options
10+
class Options
1111
{
1212
private array $options;
1313

0 commit comments

Comments
 (0)