|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / vendor / league / iso3166 / src / |
Filename | /home/a/home/dev2.destoffenstraat.com/vendor/league/iso3166/src/ISO3166DataProvider.php |
Size | 2.05 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 29-Jan-2020 08:08 |
Last accessed | 22-Aug-2025 12:46 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/*
* (c) Rob Bast <rob.bast@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace League\ISO3166;
interface ISO3166DataProvider
{
/**
* Lookup ISO3166-1 data by name identifier.
*
* @api
*
* @param string $name
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function name($name);
/**
* Lookup ISO3166-1 data by alpha2 identifier.
*
* @api
*
* @param string $alpha2
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function alpha2($alpha2);
/**
* Lookup ISO3166-1 data by alpha3 identifier.
*
* @api
*
* @param string $alpha3
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function alpha3($alpha3);
/**
* Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
*
* @api
*
* @param string $numeric
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function numeric($numeric);
}
/*
* (c) Rob Bast <rob.bast@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace League\ISO3166;
interface ISO3166DataProvider
{
/**
* Lookup ISO3166-1 data by name identifier.
*
* @api
*
* @param string $name
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function name($name);
/**
* Lookup ISO3166-1 data by alpha2 identifier.
*
* @api
*
* @param string $alpha2
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function alpha2($alpha2);
/**
* Lookup ISO3166-1 data by alpha3 identifier.
*
* @api
*
* @param string $alpha3
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function alpha3($alpha3);
/**
* Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
*
* @api
*
* @param string $numeric
*
* @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
* @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
*
* @return array
*/
public function numeric($numeric);
}