public function contains($ip_or_block): bool
    {
        if ((is_string($ip_or_block) && strpos($ip_or_block, '/') !== false) || $ip_or_block instanceof IPBlock) {
            return $this->containsBlock($ip_or_block);
        } else {
            return $this->containsIP($ip_or_block);
        }
    }
public function contains($ip_or_block): bool
    {
        if ((is_string($ip_or_block) && strpos($ip_or_block, '/') !== false) || $ip_or_block instanceof IPBlock) {
            return $this->containsBlock($ip_or_block);
        } else {
            return $this->containsIP($ip_or_block);
        }
    }
public function contains ( $ ip_or_block ) : bool { if ( ( is_string ( $ ip_or_block ) && strpos ( $ ip_or_block , '/' ) !== false ) || $ ip_or_block instanceof IPBlock ) { return $ this -> containsBlock ( $ ip_or_block ) ; } else { return $ this -> containsIP ( $ ip_or_block ) ; } }
Determine if the current block contains an IP address or block.

@param mixed $ip_or_block

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