-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented own data objects, typed collections
- Loading branch information
1 parent
2bd30f9
commit 261aa16
Showing
462 changed files
with
4,316 additions
and
4,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data; | ||
|
||
class ApplicationKeys | ||
{ | ||
public function __construct( | ||
public string $application_id, | ||
public ?string $aws_access_key = null, | ||
public ?string $aws_secret_key = null, | ||
public ?string $lwa_client_id = null, | ||
public ?string $lwa_client_secret = null, | ||
) { | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Jasara\AmznSPA\Data; | ||
|
||
use Carbon\CarbonImmutable; | ||
use Jasara\AmznSPA\Data\Base\Data; | ||
|
||
class AuthTokens extends Data | ||
{ | ||
public ?CarbonImmutable $expires_at; | ||
|
||
public function __construct( | ||
public ?string $access_token, | ||
public ?string $refresh_token, | ||
CarbonImmutable|int|null $expires_at, | ||
) { | ||
$this->expires_at = match (true) { | ||
is_int($expires_at) => CarbonImmutable::now()->addSeconds($expires_at), | ||
$expires_at instanceof CarbonImmutable => $expires_at, | ||
default => null, | ||
}; | ||
} | ||
} |
Oops, something went wrong.