From a0e8f6ed14d020b85a99fe237814374cf0a07fab Mon Sep 17 00:00:00 2001 From: Ivan Stasiuk Date: Mon, 3 Jan 2022 18:39:01 +0200 Subject: [PATCH] fix: use separate folders --- src/Client.php | 4 ++-- src/{ => Interfaces}/ConfigInterface.php | 2 +- src/{ => Models}/ResolveAccountNumberResponse.php | 2 +- tests/ClientTest.php | 2 +- tests/{ => Models}/ResolveAccountNumberResponseTest.php | 4 ++-- tests/ResolveAccountNumberTest.php | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) rename src/{ => Interfaces}/ConfigInterface.php (91%) rename src/{ => Models}/ResolveAccountNumberResponse.php (94%) rename tests/{ => Models}/ResolveAccountNumberResponseTest.php (85%) diff --git a/src/Client.php b/src/Client.php index 17b9d03..20c84bb 100644 --- a/src/Client.php +++ b/src/Client.php @@ -9,8 +9,8 @@ namespace BrokeYourBike\Paystack; use BrokeYourBike\ResolveUri\ResolveUriTrait; -use BrokeYourBike\Paystack\ResolveAccountNumberResponse; -use BrokeYourBike\Paystack\ConfigInterface; +use BrokeYourBike\Paystack\Models\ResolveAccountNumberResponse; +use BrokeYourBike\Paystack\Interfaces\ConfigInterface; use BrokeYourBike\HttpClient\HttpClientTrait; use BrokeYourBike\HttpClient\HttpClientInterface; diff --git a/src/ConfigInterface.php b/src/Interfaces/ConfigInterface.php similarity index 91% rename from src/ConfigInterface.php rename to src/Interfaces/ConfigInterface.php index 99083f1..81fa6e6 100644 --- a/src/ConfigInterface.php +++ b/src/Interfaces/ConfigInterface.php @@ -6,7 +6,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this file, // You can obtain one at https://mozilla.org/MPL/2.0/. -namespace BrokeYourBike\Paystack; +namespace BrokeYourBike\Paystack\Interfaces; /** * @author Ivan Stasiuk diff --git a/src/ResolveAccountNumberResponse.php b/src/Models/ResolveAccountNumberResponse.php similarity index 94% rename from src/ResolveAccountNumberResponse.php rename to src/Models/ResolveAccountNumberResponse.php index ae39f71..3cc0239 100644 --- a/src/ResolveAccountNumberResponse.php +++ b/src/Models/ResolveAccountNumberResponse.php @@ -6,7 +6,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this file, // You can obtain one at https://mozilla.org/MPL/2.0/. -namespace BrokeYourBike\Paystack; +namespace BrokeYourBike\Paystack\Models; use Spatie\DataTransferObject\Attributes\MapFrom; use BrokeYourBike\DataTransferObject\JsonResponse; diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 464756e..eb64ed8 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -10,7 +10,7 @@ use PHPUnit\Framework\TestCase; use BrokeYourBike\ResolveUri\ResolveUriTrait; -use BrokeYourBike\Paystack\ConfigInterface; +use BrokeYourBike\Paystack\Interfaces\ConfigInterface; use BrokeYourBike\Paystack\Client; use BrokeYourBike\HttpClient\HttpClientTrait; use BrokeYourBike\HttpClient\HttpClientInterface; diff --git a/tests/ResolveAccountNumberResponseTest.php b/tests/Models/ResolveAccountNumberResponseTest.php similarity index 85% rename from tests/ResolveAccountNumberResponseTest.php rename to tests/Models/ResolveAccountNumberResponseTest.php index a4c67b7..9c1cf62 100644 --- a/tests/ResolveAccountNumberResponseTest.php +++ b/tests/Models/ResolveAccountNumberResponseTest.php @@ -6,10 +6,10 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this file, // You can obtain one at https://mozilla.org/MPL/2.0/. -namespace BrokeYourBike\Paystack\Tests; +namespace BrokeYourBike\Paystack\Tests\Models; use PHPUnit\Framework\TestCase; -use BrokeYourBike\Paystack\ResolveAccountNumberResponse; +use BrokeYourBike\Paystack\Models\ResolveAccountNumberResponse; /** * @author Ivan Stasiuk diff --git a/tests/ResolveAccountNumberTest.php b/tests/ResolveAccountNumberTest.php index 758d0a2..fea7efb 100644 --- a/tests/ResolveAccountNumberTest.php +++ b/tests/ResolveAccountNumberTest.php @@ -10,8 +10,8 @@ use Psr\Http\Message\ResponseInterface; use PHPUnit\Framework\TestCase; -use BrokeYourBike\Paystack\ResolveAccountNumberResponse; -use BrokeYourBike\Paystack\ConfigInterface; +use BrokeYourBike\Paystack\Models\ResolveAccountNumberResponse; +use BrokeYourBike\Paystack\Interfaces\ConfigInterface; use BrokeYourBike\Paystack\Client; class ResolveAccountNumberTest extends TestCase