protected function shouldWriteOutput($min=0, $max=null)
    {
        $out = $this->getOutput();
        if (!$out instanceof OutputInterface) {
            return false;
        }
        $v = $out->getVerbosity();

        return !($v<$min || ($max!==null && $v>$max));
    }
protected function shouldWriteOutput($min=0, $max=null)
    {
        $out = $this->getOutput();
        if (!$out instanceof OutputInterface) {
            return false;
        }
        $v = $out->getVerbosity();

        return !($v<$min || ($max!==null && $v>$max));
    }
protected function shouldWriteOutput ( $ min = 0 , $ max = null ) { $ out = $ this -> getOutput ( ) ; if ( ! $ out instanceof OutputInterface ) { return false ; } $ v = $ out -> getVerbosity ( ) ; return ! ( $ v < $ min || ( $ max !== null && $ v > $ max ) ) ; }
Checks if the output verbositiy is between two given levels

@param integer $min minimum verbosity level
@param integer $max maximum verbosity level or null for no maximum

@return boolean if output should be written
Checks if the output verbositiy is between two given levels