Path: blob/1.0-develop/app/Contracts/Repository/ApiKeyRepositoryInterface.php
10262 views
<?php12namespace Pterodactyl\Contracts\Repository;34use Pterodactyl\Models\User;5use Illuminate\Support\Collection;67interface ApiKeyRepositoryInterface extends RepositoryInterface8{9/**10* Get all the account API keys that exist for a specific user.11*/12public function getAccountKeys(User $user): Collection;1314/**15* Get all the application API keys that exist for a specific user.16*/17public function getApplicationKeys(User $user): Collection;1819/**20* Delete an account API key from the panel for a specific user.21*/22public function deleteAccountKey(User $user, string $identifier): int;2324/**25* Delete an application API key from the panel for a specific user.26*/27public function deleteApplicationKey(User $user, string $identifier): int;28}293031