public function getCountries($includeNoLongerUsingVAT = false)
    {
        if ($includeNoLongerUsingVAT) {
            return $this->countries;
        }

        return array_filter($this->countries, function ($country) {
            /** @var VATCountry $country */
            return $country->usedVATOnCurrentDate();
        });
    }
public function getCountries($includeNoLongerUsingVAT = false)
    {
        if ($includeNoLongerUsingVAT) {
            return $this->countries;
        }

        return array_filter($this->countries, function ($country) {
            /** @var VATCountry $country */
            return $country->usedVATOnCurrentDate();
        });
    }
public function getCountries ( $ includeNoLongerUsingVAT = false ) { if ( $ includeNoLongerUsingVAT ) { return $ this -> countries ; } return array_filter ( $ this -> countries , function ( $ country ) { /** @var VATCountry $country */ return $ country -> usedVATOnCurrentDate ( ) ; } ) ; }
Get the countries that used VAT at the current date.
Optionally include countries that no longer use VAT.

@param bool $includeNoLongerUsingVAT

@return VATCountry[]
Get the countries that used VAT at the current date . Optionally include countries that no longer use VAT .