Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/ApiKeyRepositoryInterface.php
14044 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Pterodactyl\Models\User;
6
use Illuminate\Support\Collection;
7
8
interface ApiKeyRepositoryInterface extends RepositoryInterface
9
{
10
/**
11
* Get all the account API keys that exist for a specific user.
12
*/
13
public function getAccountKeys(User $user): Collection;
14
15
/**
16
* Delete an account API key from the panel for a specific user.
17
*/
18
public function deleteAccountKey(User $user, string $identifier): int;
19
}
20
21