Файл: gapps/vendor/fzaninotto/faker/src/Faker/Provider/at_AT/Payment.php
Строк: 24
<?php
namespace FakerProviderat_AT;
/**
* Class Payment
*
* @package FakerProviderat_AT
*/
class Payment extends FakerProviderPayment
{
/**
* Value Added Tax (VAT)
*
* @example 'ATU12345678', ('spaced') 'AT U12345678'
*
* @see http://ec.europa.eu/taxation_customs/vies/faq.html?locale=en#item_11
* @see http://www.iecomputersystems.com/ordering/eu_vat_numbers.htm
* @see http://en.wikipedia.org/wiki/VAT_identification_number
*
* @param bool $spacedNationalPrefix
*
* @return string VAT Number
*/
public static function vat($spacedNationalPrefix = true)
{
$prefix = ($spacedNationalPrefix) ? "AT U" : "ATU";
return sprintf("%s%d", $prefix, self::randomNumber(8, true));
}
}