Public Member Functions | |
__construct (IpAddress $ip, $mask) | |
getMask () | |
getStart () | |
getEnd () | |
contains ($probe) | |
Static Public Member Functions | |
static | create (IpAddress $ip, $mask) |
Public Attributes | |
const | MASK_MAX_SIZE = 31 |
Private Attributes | |
$ip = null | |
$end = null | |
$mask = null | |
$longMask = null |
Definition at line 15 of file IpNetwork.class.php.
IpNetwork::__construct | ( | IpAddress $ | ip, | |
$ | mask | |||
) |
Definition at line 32 of file IpNetwork.class.php.
References $mask, IpAddress::getLongIp(), and Assert::isInteger().
IpNetwork::contains | ( | $ | probe | ) |
Implements SingleRange.
Definition at line 77 of file IpNetwork.class.php.
References Assert::isInstance().
static IpNetwork::create | ( | IpAddress $ | ip, | |
$ | mask | |||
) | [static] |
Definition at line 27 of file IpNetwork.class.php.
References $mask.
Referenced by getEnd().
IpNetwork::getEnd | ( | ) |
Implements SingleRange.
Definition at line 65 of file IpNetwork.class.php.
References create().
IpNetwork::getMask | ( | ) |
Definition at line 49 of file IpNetwork.class.php.
IpNetwork::getStart | ( | ) |
IpNetwork::$end = null [private] |
Definition at line 20 of file IpNetwork.class.php.
IpNetwork::$ip = null [private] |
Definition at line 19 of file IpNetwork.class.php.
IpNetwork::$longMask = null [private] |
Definition at line 22 of file IpNetwork.class.php.
IpNetwork::$mask = null [private] |
Definition at line 21 of file IpNetwork.class.php.
Referenced by __construct(), and create().
const IpNetwork::MASK_MAX_SIZE = 31 |
Definition at line 17 of file IpNetwork.class.php.