public function isIn($block): bool
    {
        if (!$block instanceof IPBlock) {
            $block = IPBlock::create($block);
        }

        return $block->contains($this);
    }
public function isIn($block): bool
    {
        if (!$block instanceof IPBlock) {
            $block = IPBlock::create($block);
        }

        return $block->contains($this);
    }
public function isIn ( $ block ) : bool { if ( ! $ block instanceof IPBlock ) { $ block = IPBlock :: create ( $ block ) ; } return $ block -> contains ( $ this ) ; }
Check if the IP is contained in given block.

@param $block mixed Anything that can be converted into an IPBlock

@return bool
Check if the IP is contained in given block .