Files
pterodactyl-panel/app/Contracts/Repository/ApiKeyRepositoryInterface.php
T

20 lines
490 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Contracts\Repository;
use Pterodactyl\Models\User;
use Illuminate\Support\Collection;
interface ApiKeyRepositoryInterface extends RepositoryInterface
{
/**
2022-10-14 10:59:20 -06:00
* Get all the account API keys that exist for a specific user.
*/
public function getAccountKeys(User $user): Collection;
/**
* Delete an account API key from the panel for a specific user.
*/
public function deleteAccountKey(User $user, string $identifier): int;
}