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
IpHostInterface.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 IAWPSCOPED\League\Uri\Contracts; |
| 13 | |
| 14 | /** @internal */ |
| 15 | interface IpHostInterface extends HostInterface |
| 16 | { |
| 17 | /** |
| 18 | * Returns whether or not the host is an IPv4 address. |
| 19 | */ |
| 20 | public function isIpv4() : bool; |
| 21 | /** |
| 22 | * Returns whether or not the host is an IPv6 address. |
| 23 | */ |
| 24 | public function isIpv6() : bool; |
| 25 | /** |
| 26 | * Returns whether or not the host is an IPv6 address. |
| 27 | */ |
| 28 | public function isIpFuture() : bool; |
| 29 | /** |
| 30 | * Returns whether or not the host has a ZoneIdentifier. |
| 31 | * |
| 32 | * @see http://tools.ietf.org/html/rfc6874#section-4 |
| 33 | */ |
| 34 | public function hasZoneIdentifier() : bool; |
| 35 | /** |
| 36 | * Returns an host without its zone identifier according to RFC6874. |
| 37 | * |
| 38 | * This method MUST retain the state of the current instance, and return |
| 39 | * an instance without the host zone identifier according to RFC6874 |
| 40 | * |
| 41 | * @see http://tools.ietf.org/html/rfc6874#section-4 |
| 42 | */ |
| 43 | public function withoutZoneIdentifier() : self; |
| 44 | } |
| 45 |