PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.20.2
GiveWP – Donation Plugin and Fundraising Platform v2.20.2
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / vendor / fakerphp / faker / src / Faker / Provider / es_AR / Address.php
Address.php
69 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Faker\Provider\es_AR;
4
5 class Address extends \Faker\Provider\es_ES\Address
6 {
7 protected static $cityPrefix = array('San', 'Puerto', 'Villa', 'Gral.', 'Don');
8 protected static $citySuffix = array('del Mar', 'del Norte', 'del Este', 'del Sur', 'del Oeste', 'del Mirador');
9 protected static $buildingNumber = array('#####', '####', '###', '##', '#');
10 protected static $streetSuffix = array('');
11 protected static $postcode = array('####', '#####');
12 protected static $state = array(
13 'Buenos Aires', 'Catamarca', 'Chaco', 'Chubut', 'Córdoba', 'Corrientes', 'Entre Ríos', 'Formosa', 'Jujuy', 'La Pampa', 'La Rioja', 'Mendoza', 'Misiones', 'Neuquén', 'Río Negro', 'Salta', 'San Juan', 'San Luis', 'Santa Cruz', 'Santa Fe', 'Santiago del Estero', 'Tierra del Fuego, Antártida e Islas del Atlántico Sur', 'Tucumán'
14 );
15 protected static $stateAbbr = array(
16 'AR-B', 'AR-K', 'AR-H', 'AR-U', 'AR-X', 'AR-W', 'AR-E', 'AR-P', 'AR-Y', 'AR-L', 'AR-F', 'AR-M', 'AR-N', 'AR-Q', 'AR-R', 'AR-A', 'AR-J', 'AR-D', 'AR-Z', 'AR-S', 'AR-G', 'AR-V', 'AR-T'
17 );
18 protected static $cityFormats = array(
19 '{{cityPrefix}} {{firstName}} {{citySuffix}}',
20 '{{cityPrefix}} {{firstName}}',
21 '{{firstName}} {{citySuffix}}',
22 '{{lastName}} {{citySuffix}}',
23 );
24 protected static $streetNameFormats = array(
25 '{{firstName}} {{streetSuffix}}',
26 '{{lastName}} {{streetSuffix}}'
27 );
28 protected static $streetAddressFormats = array(
29 '{{streetName}} {{buildingNumber}}',
30 '{{streetName}} {{buildingNumber}} {{secondaryAddress}}',
31 );
32 protected static $addressFormats = array(
33 "{{streetAddress}}\n{{city}}, {{stateAbbr}} {{postcode}}",
34 );
35 protected static $secondaryAddressFormats = array('Depto. ###', 'Hab. ###', 'Piso #', 'Piso ##', 'PB A', '# A', '# B', '# C', '# D', '# E', '# F', '## A', '## B', '## C', '## D', '## E', '## F', '# #', '## #');
36
37 /**
38 * @example 'San'
39 */
40 public static function cityPrefix()
41 {
42 return static::randomElement(static::$cityPrefix);
43 }
44
45 /**
46 * @example '3ºA'
47 */
48 public static function secondaryAddress()
49 {
50 return static::numerify(static::randomElement(static::$secondaryAddressFormats));
51 }
52
53 /**
54 * @example 'Buenos Aires'
55 */
56 public static function state()
57 {
58 return static::randomElement(static::$state);
59 }
60
61 /**
62 * @example 'AR-B'
63 */
64 public static function stateAbbr()
65 {
66 return static::randomElement(static::$stateAbbr);
67 }
68 }
69