src/Invoice/CompletorInvoiceLines.php
protected function filterVatRateInfosByRange($min, $max, array $vatRateInfos = null)
    {
        if ($vatRateInfos === null) {
            $vatRateInfos = $this->possibleVatRates;
        }

        $result = array();
        foreach ($vatRateInfos as $vatRateInfo) {
            $vatRate = is_array($vatRateInfo) ? $vatRateInfo[Tag::VatRate] : $vatRateInfo;
            if ($min <= $vatRate && $vatRate <= $max) {
                $result[] = $vatRateInfo;
            }
        }
        return $result;
    }
protected function filterVatRateInfosByRange($min, $max, array $vatRateInfos = null)
    {
        if ($vatRateInfos === null) {
            $vatRateInfos = $this->possibleVatRates;
        }

        $result = array();
        foreach ($vatRateInfos as $vatRateInfo) {
            $vatRate = is_array($vatRateInfo) ? $vatRateInfo[Tag::VatRate] : $vatRateInfo;
            if ($min <= $vatRate && $vatRate <= $max) {
                $result[] = $vatRateInfo;
            }
        }
        return $result;
    }
protected function filterVatRateInfosByRange ( $ min , $ max , array $ vatRateInfos = null ) { if ( $ vatRateInfos === null ) { $ vatRateInfos = $ this -> possibleVatRates ; } $ result = array ( ) ; foreach ( $ vatRateInfos as $ vatRateInfo ) { $ vatRate = is_array ( $ vatRateInfo ) ? $ vatRateInfo [ Tag :: VatRate ] : $ vatRateInfo ; if ( $ min <= $ vatRate && $ vatRate <= $ max ) { $ result [ ] = $ vatRateInfo ; } } return $ result ; }
Returns the set of possible vat rates that fall in the given vat range.

@param float $min
@param float $max
@param array|null $vatRateInfos
The set of vat rate infos to filter. If not given, the property
$this->possibleVatRates is used.

@return array[]
The, possibly empty, set of vat rate infos that have a vat rate that
falls within the given vat range.
Returns the set of possible vat rates that fall in the given vat range .