AuthorityInterface.php
2 years ago
DataPathInterface.php
2 years ago
DomainHostInterface.php
2 years ago
FragmentInterface.php
2 years ago
HostInterface.php
2 years ago
IpHostInterface.php
2 years ago
PathInterface.php
2 years ago
PortInterface.php
2 years ago
QueryInterface.php
2 years ago
SegmentedPathInterface.php
2 years ago
UriComponentInterface.php
2 years ago
UriException.php
2 years ago
UriInterface.php
2 years ago
UserInfoInterface.php
2 years ago
HostInterface.php
46 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 IAWPSCOPED\League\Uri\Contracts; |
| 13 | |
| 14 | /** @internal */ |
| 15 | interface HostInterface extends UriComponentInterface |
| 16 | { |
| 17 | /** |
| 18 | * Returns the ascii representation. |
| 19 | */ |
| 20 | public function toAscii() : ?string; |
| 21 | /** |
| 22 | * Returns the unicode representation. |
| 23 | */ |
| 24 | public function toUnicode() : ?string; |
| 25 | /** |
| 26 | * Returns the IP version. |
| 27 | * |
| 28 | * If the host is a not an IP this method will return null |
| 29 | */ |
| 30 | public function getIpVersion() : ?string; |
| 31 | /** |
| 32 | * Returns the IP component If the Host is an IP address. |
| 33 | * |
| 34 | * If the host is a not an IP this method will return null |
| 35 | */ |
| 36 | public function getIp() : ?string; |
| 37 | /** |
| 38 | * Tells whether the host is a domain name. |
| 39 | */ |
| 40 | public function isDomain() : bool; |
| 41 | /** |
| 42 | * Tells whether the host is an IP Address. |
| 43 | */ |
| 44 | public function isIp() : bool; |
| 45 | } |
| 46 |