public function containsBlock($block): bool
    {
        if (!$block instanceof IPBlock) {
            $block = new static($block);
        }

        return $block->getFirstIp()->numeric() >= $this->first_ip->numeric() && $block->getLastIp()->numeric() <= $this->last_ip->numeric();
    }
public function containsBlock($block): bool
    {
        if (!$block instanceof IPBlock) {
            $block = new static($block);
        }

        return $block->getFirstIp()->numeric() >= $this->first_ip->numeric() && $block->getLastIp()->numeric() <= $this->last_ip->numeric();
    }
public function containsBlock ( $ block ) : bool { if ( ! $ block instanceof IPBlock ) { $ block = new static ( $ block ) ; } return $ block -> getFirstIp ( ) -> numeric ( ) >= $ this -> first_ip -> numeric ( ) && $ block -> getLastIp ( ) -> numeric ( ) <= $ this -> last_ip -> numeric ( ) ; }
Determine if the current block contains another block.

True in this situation:
$this: first_ip[                               ]last_ip
$block:         first_ip[             ]last_ip

@param mixed $block

@return bool
Determine if the current block contains another block .