Skip to content

Commit

Permalink
Rename CoreAPI class name
Browse files Browse the repository at this point in the history
  • Loading branch information
jantinnerezo committed Mar 19, 2024
1 parent 749df27 commit ec527a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/CoreApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use AirLST\SdkPhp\Resources\GuestResource;
use Saloon\Http\Connector;

class CoreAPI extends Connector
class CoreApi extends Connector
{
protected string $baseUrl = 'https://airlst.app/api';

Expand Down
2 changes: 1 addition & 1 deletion tests/Requests/Guest/ValidateCodeRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace AirLST\SdkPhp\Tests\Requests\Guest;

use AirLST\SdkPhp\CoreAPI;
use AirLST\SdkPhp\CoreApi;
use AirLST\SdkPhp\Requests\Guest\ValidateCodeRequest;
use AirLST\SdkPhp\Tests\TestCase;

Expand Down
4 changes: 2 additions & 2 deletions tests/Resources/EventResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace AirLST\SdkPhp\Tests\Requests\Event;

use AirLST\SdkPhp\CoreAPI;
use AirLST\SdkPhp\CoreApi;
use AirLST\SdkPhp\Requests\Event\GetRequest;
use AirLST\SdkPhp\Requests\Event\ListRequest;
use AirLST\SdkPhp\Resources\EventResource;
Expand Down Expand Up @@ -42,7 +42,7 @@ public function testGet(): void
);
}

protected function resource(CoreAPI $core): EventResource
protected function resource(CoreApi $core): EventResource
{
return new EventResource($core);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Resources/GuestResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace AirLST\SdkPhp\Tests\Requests\Event;

use AirLST\SdkPhp\CoreAPI;
use AirLST\SdkPhp\CoreApi;
use AirLST\SdkPhp\Requests\Guest\CreateRequest;
use AirLST\SdkPhp\Requests\Guest\GetRequest;
use AirLST\SdkPhp\Requests\Guest\UpdateRequest;
Expand Down Expand Up @@ -72,7 +72,7 @@ public function testUpdate(): void
);
}

protected function resource(CoreAPI $core): GuestResource
protected function resource(CoreApi $core): GuestResource
{
return new GuestResource($core);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class TestCase extends BaseTestCase
{
protected \AirLST\SdkPhp\CoreAPI $core;
protected \AirLST\SdkPhp\CoreApi $core;

public function mock(string $class, array $expects = []): MockClient
{
Expand All @@ -27,6 +27,6 @@ protected function setUp(): void
MockClient::destroyGlobal();
Config::preventStrayRequests();

$this->core = new \AirLST\SdkPhp\CoreAPI('api-key');
$this->core = new \AirLST\SdkPhp\CoreApi('api-key');
}
}

0 comments on commit ec527a8

Please sign in to comment.