*/ interface ApiKeyRepositoryInterface extends EntityRepositoryInterface, EntitySpecificationRepositoryInterface { /** * Will create provided API key with admin permissions, only if no other API keys exist yet */ public function createInitialApiKey(string $apiKey): ApiKey|null; /** * Checks whether an API key with provided name exists or not */ public function nameExists(string $name): bool; /** * Delete an API key by name * @return positive-int|0 Number of affected results */ public function deleteByName(string $name): int; }