public function containsIP($ip): bool
    {
        if (!$ip instanceof IP) {
            $ip = IP::create($ip);
        }

        return ($ip->numeric() >= $this->getFirstIp()->numeric()) && ($ip->numeric() <= $this->getLastIp()->numeric());
    }
public function containsIP($ip): bool
    {
        if (!$ip instanceof IP) {
            $ip = IP::create($ip);
        }

        return ($ip->numeric() >= $this->getFirstIp()->numeric()) && ($ip->numeric() <= $this->getLastIp()->numeric());
    }
public function containsIP ( $ ip ) : bool { if ( ! $ ip instanceof IP ) { $ ip = IP :: create ( $ ip ) ; } return ( $ ip -> numeric ( ) >= $ this -> getFirstIp ( ) -> numeric ( ) ) && ( $ ip -> numeric ( ) <= $ this -> getLastIp ( ) -> numeric ( ) ) ; }
Determine if the current block contains an IP address.

@param mixed $ip

@return bool
Determine if the current block contains an IP address .