protected function verifyNetwork($input): bool
    {
        if ($this->networkRange === null) {
            return true;
        }

        if (isset($this->networkRange['mask'])) {
            return $this->belongsToSubnet($input);
        }

        $input = sprintf('%u', ip2long($input));

        $min = sprintf('%u', ip2long($this->networkRange['min']));
        $max = sprintf('%u', ip2long($this->networkRange['max']));

        return ($input >= $min) && ($input <= $max);
    }
protected function verifyNetwork($input): bool
    {
        if ($this->networkRange === null) {
            return true;
        }

        if (isset($this->networkRange['mask'])) {
            return $this->belongsToSubnet($input);
        }

        $input = sprintf('%u', ip2long($input));

        $min = sprintf('%u', ip2long($this->networkRange['min']));
        $max = sprintf('%u', ip2long($this->networkRange['max']));

        return ($input >= $min) && ($input <= $max);
    }
protected function verifyNetwork ( $ input ) : bool { if ( $ this -> networkRange === null ) { return true ; } if ( isset ( $ this -> networkRange [ 'mask' ] ) ) { return $ this -> belongsToSubnet ( $ input ) ; } $ input = sprintf ( '%u' , ip2long ( $ input ) ) ; $ min = sprintf ( '%u' , ip2long ( $ this -> networkRange [ 'min' ] ) ) ; $ max = sprintf ( '%u' , ip2long ( $ this -> networkRange [ 'max' ] ) ) ; return ( $ input >= $ min ) && ( $ input <= $ max ) ; }
Verify Network by mask

@param  string $input

@return bool
Verify Network by mask