PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.6
Kubio AI Page Builder v2.8.6
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / es_PE / Address.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / es_PE Last commit date
Address.php 1 year ago Company.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago
Address.php
66 lines
1 <?php
2
3 namespace Faker\Provider\es_PE;
4
5 class Address extends \Faker\Provider\es_ES\Address
6 {
7 protected static $cityPrefix = array('San', 'Puerto', 'Gral.', 'Don');
8 protected static $citySuffix = array('Alta', 'Baja', 'Norte', 'Este', ' Sur', ' Oeste');
9 protected static $buildingNumber = array('#####', '####', '###', '##', '#');
10 protected static $streetPrefix = array('Jr.', 'Av.', 'Cl.', 'Urb.' );
11 protected static $streetSuffix = array('');
12 protected static $postcode = array('LIMA ##');
13 protected static $state = array(
14 'Lima', 'Callao', 'Arequipa', 'Cuzco', 'Piura', 'Iquitos', 'Huaraz', 'Tacna', 'Ayacucho', 'Pucallpa', 'Trujillo', 'Chimbote', 'Ica', 'Moquegua', 'Puno', 'Tarapoto', 'Cajamarca', 'Lambayeque', 'Huanuco', 'Jauja', 'Tumbes', 'Madre de Dios'
15 );
16 protected static $cityFormats = array(
17 '{{cityPrefix}} {{firstName}} {{lastName}}',
18 '{{cityPrefix}} {{firstName}}',
19 '{{firstName}} {{citySuffix}}',
20 '{{lastName}} {{citySuffix}}',
21 );
22 protected static $streetNameFormats = array(
23 '{{streetPrefix}} {{firstName}} {{lastName}}',
24 );
25 protected static $streetAddressFormats = array(
26 '{{streetName}} # {{buildingNumber}} ',
27 '{{streetName}} # {{buildingNumber}} {{secondaryAddress}}',
28 );
29 protected static $addressFormats = array(
30 "{{streetAddress}}\n{{city}}, {{state}}",
31 );
32 protected static $secondaryAddressFormats = array('Dpto. ###', 'Hab. ###', 'Piso #', 'Piso ##');
33
34 /**
35 * @example ''
36 */
37 public static function cityPrefix()
38 {
39 return static::randomElement(static::$cityPrefix);
40 }
41
42 /**
43 * @example 'Jr.'
44 */
45 public static function streetPrefix()
46 {
47 return static::randomElement(static::$streetPrefix);
48 }
49
50 /**
51 * @example 'Dpto. 402'
52 */
53 public static function secondaryAddress()
54 {
55 return static::numerify(static::randomElement(static::$secondaryAddressFormats));
56 }
57
58 /**
59 * @example 'Lima'
60 */
61 public static function state()
62 {
63 return static::randomElement(static::$state);
64 }
65 }
66