src/Invoice/CompletorStrategy/TryAllVatRatePermutations.php
protected function setVatRates($vatType, $include0)
    {
        $this->vatRates = array();
        foreach ($this->possibleVatRates as $vatRate) {
            if ($vatRate[Tag::VatType] === $vatType) {
                $this->vatRates[] = $vatRate[Tag::VatRate];
            }
        }
        if ($include0) {
            $this->vatRates[] = 0.0;
        }
    }
protected function setVatRates($vatType, $include0)
    {
        $this->vatRates = array();
        foreach ($this->possibleVatRates as $vatRate) {
            if ($vatRate[Tag::VatType] === $vatType) {
                $this->vatRates[] = $vatRate[Tag::VatRate];
            }
        }
        if ($include0) {
            $this->vatRates[] = 0.0;
        }
    }
protected function setVatRates ( $ vatType , $ include0 ) { $ this -> vatRates = array ( ) ; foreach ( $ this -> possibleVatRates as $ vatRate ) { if ( $ vatRate [ Tag :: VatType ] === $ vatType ) { $ this -> vatRates [ ] = $ vatRate [ Tag :: VatRate ] ; } } if ( $ include0 ) { $ this -> vatRates [ ] = 0.0 ; } }
Initializes the array of vat rates to use for this permutation.

@param float $vatType
@param bool $include0
Initializes the array of vat rates to use for this permutation .