AuthorityInterface.php
3 years ago
DataPathInterface.php
3 years ago
DomainHostInterface.php
3 years ago
FragmentInterface.php
3 years ago
HostInterface.php
3 years ago
IpHostInterface.php
3 years ago
PathInterface.php
3 years ago
PortInterface.php
3 years ago
QueryInterface.php
3 years ago
SegmentedPathInterface.php
3 years ago
UriComponentInterface.php
3 years ago
UriException.php
3 years ago
UriInterface.php
3 years ago
UserInfoInterface.php
3 years ago
HostInterface.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * League.Uri (https://uri.thephpleague.com) |
| 5 | * |
| 6 | * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | declare (strict_types=1); |
| 12 | namespace IAWP\League\Uri\Contracts; |
| 13 | |
| 14 | interface HostInterface extends UriComponentInterface |
| 15 | { |
| 16 | /** |
| 17 | * Returns the ascii representation. |
| 18 | */ |
| 19 | public function toAscii() : ?string; |
| 20 | /** |
| 21 | * Returns the unicode representation. |
| 22 | */ |
| 23 | public function toUnicode() : ?string; |
| 24 | /** |
| 25 | * Returns the IP version. |
| 26 | * |
| 27 | * If the host is a not an IP this method will return null |
| 28 | */ |
| 29 | public function getIpVersion() : ?string; |
| 30 | /** |
| 31 | * Returns the IP component If the Host is an IP address. |
| 32 | * |
| 33 | * If the host is a not an IP this method will return null |
| 34 | */ |
| 35 | public function getIp() : ?string; |
| 36 | /** |
| 37 | * Tells whether the host is a domain name. |
| 38 | */ |
| 39 | public function isDomain() : bool; |
| 40 | /** |
| 41 | * Tells whether the host is an IP Address. |
| 42 | */ |
| 43 | public function isIp() : bool; |
| 44 | } |
| 45 |