Files
ltsecurityinc/app/code/Plumrocket/GeoIPLookup/Api/GeoIpServiceInterface.php
T

33 lines
706 B
PHP

<?php
/**
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2024 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license/ End-user License Agreement
*/
namespace Plumrocket\GeoIPLookup\Api;
/**
* @since 2.0.0
*/
interface GeoIpServiceInterface
{
/**
* @param string|null $ip
* @return array|null
*/
public function getGeoLocation(?string $ip): ?array;
/**
* @param string|null $ip
* @return string|null
*/
public function getCountryCode(?string $ip): ?string;
/**
* @param string|null $ip
* @return string|null
*/
public function getCurrentCountryState(?string $ip): ?string;
}