Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Refactor authToken parameters in Core classes
Browse files Browse the repository at this point in the history
The authToken parameters in the Core classes 'RenewedAuthToken' and 'Credentials' have been refactored. In 'RenewedAuthToken', unnecessary authToken and applicationStatus parameters were removed. In 'Credentials', variable name 'accessToken' was changed to 'authToken' for consistency and clarity.

Signed-off-by: mesilov <[email protected]>
  • Loading branch information
mesilov committed Jul 4, 2024
1 parent 757a7aa commit 26e3a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Core/Credentials/Credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public static function createFromWebhook(WebhookUrl $webhookUrl): self
*
* @throws InvalidArgumentException
*/
public static function createFromOAuth(AuthToken $accessToken, ApplicationProfile $applicationProfile, string $domainUrl): self
public static function createFromOAuth(AuthToken $authToken, ApplicationProfile $applicationProfile, string $domainUrl): self
{
return new self(
null,
$accessToken,
$authToken,
$applicationProfile,
$domainUrl
);
Expand Down
2 changes: 0 additions & 2 deletions src/Core/Response/DTO/RenewedAuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
readonly class RenewedAuthToken
{
/**
* @param AuthToken $authToken
* @param non-empty-string $memberId
* @param non-empty-string $clientEndpoint
* @param non-empty-string $serverEndpoint
* @param ApplicationStatus $applicationStatus
* @param non-empty-string $domain
*/
public function __construct(
Expand Down

0 comments on commit 26e3a34

Please sign in to comment.