Lggr
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
Faker\Provider\ms_MY\Address Class Reference
Inheritance diagram for Faker\Provider\ms_MY\Address:
Inheritance graph
[legend]
Collaboration diagram for Faker\Provider\ms_MY\Address:
Collaboration graph
[legend]

Public Member Functions

 streetPrefix ()
 
 streetName ()
 
 township ()
 
 townshipPrefixAbbr ()
 
 townshipPrefix ()
 
 townshipSuffix ()
 
 townState ()
 
 city ()
 
 state ()
 
- Public Member Functions inherited from Faker\Provider\Address
 streetAddress ()
 
 address ()
 
- Public Member Functions inherited from Faker\Provider\Base
 __construct (Generator $generator)
 
 optional ($weight=0.5, $default=null)
 
 unique ($reset=false, $maxRetries=10000)
 
 valid ($validator=null, $maxRetries=10000)
 

Static Public Member Functions

static buildingPrefix ()
 
static buildingNumber ()
 
static postcode ($state=null)
 
- Static Public Member Functions inherited from Faker\Provider\Address
static citySuffix ()
 
static streetSuffix ()
 
static postcode ()
 
static country ()
 
static latitude ($min=-90, $max=90)
 
static longitude ($min=-180, $max=180)
 
static localCoordinates ()
 
- Static Public Member Functions inherited from Faker\Provider\Base
static randomDigit ()
 
static randomDigitNotNull ()
 
static randomDigitNot ($except)
 
static randomNumber ($nbDigits=null, $strict=false)
 
static randomFloat ($nbMaxDecimals=null, $min=0, $max=null)
 
static numberBetween ($int1=0, $int2=2147483647)
 
static passthrough ($value)
 
static randomLetter ()
 
static randomAscii ()
 
static randomElements ($array=array('a', 'b', 'c'), $count=1, $allowDuplicates=false)
 
static randomElement ($array=array('a', 'b', 'c'))
 
static randomKey ($array=array())
 
static shuffle ($arg='')
 
static shuffleArray ($array=array())
 
static shuffleString ($string='', $encoding='UTF-8')
 
static numerify ($string='###')
 
static lexify ($string='????')
 
static bothify ($string='## ??')
 
static asciify ($string=' ****')
 
static regexify ($regex='')
 
static toLower ($string='')
 
static toUpper ($string='')
 

Static Protected Attributes

static $addressFormats
 
static $streetAddressFormats
 
static $buildingPrefix
 
static $buildingNumber
 
static $streetNameFormats
 
static $townshipFormats
 
static $streetPrefix
 
static $streetSuffix
 
static $townshipPrefixAbbr
 
static $townshipPrefix
 
static $townshipSuffix
 
static $towns
 
static $states
 
static $country
 
- Static Protected Attributes inherited from Faker\Provider\Address
static $citySuffix = array('Ville')
 
static $streetSuffix = array('Street')
 
static $cityFormats
 
static $streetNameFormats
 
static $streetAddressFormats
 
static $addressFormats
 
static $buildingNumber = array('%#')
 
static $postcode = array('#####')
 
static $country = array()
 

Additional Inherited Members

- Protected Attributes inherited from Faker\Provider\Base
 $generator
 
 $unique
 

Member Data Documentation

◆ $addressFormats

Faker\Provider\ms_MY\Address::$addressFormats
staticprotected
Initial value:
= array(
'{{streetAddress}}, {{township}}, {{townState}}',
)

https://en.wikipedia.org/wiki/Addresses_in_Malaysia

◆ $buildingNumber

Faker\Provider\ms_MY\Address::$buildingNumber
staticprotected
Initial value:
= array(
'%','%','%',
'%#','%#','%#','%#',
'%##',
'%-%',
'?-##-##',
'%?-##'
)

◆ $buildingPrefix

Faker\Provider\ms_MY\Address::$buildingPrefix
staticprotected
Initial value:
= array(
'','','','','','',
'No. ','No. ','No. ',
'Lot ',
)

Most of the time 'No.' is not needed, and 'Lot' is less used.

◆ $country

Faker\Provider\ms_MY\Address::$country
staticprotected
Initial value:
= array(
'Abkhazia','Afghanistan','Afrika Selatan','Republik Afrika Tengah','Akrotiri dan Dhekelia','Albania','Algeria','Amerika Syarikat','Andorra','Angola','Antigua dan Barbuda','Arab Saudi','Argentina','Armenia','Australia','Austria','Azerbaijan',
'Bahamas','Bahrain','Bangladesh','Barbados','Belanda','Belarus','Belgium','Belize','Benin','Bhutan','Bolivia','Bonaire','Bosnia dan Herzegovina','Botswana','Brazil','Brunei Darussalam','Bulgaria','Burkina Faso','Burundi',
'Cameroon','Chad','Chile','Republik Rakyat China','Republik China di Taiwan','Colombia','Comoros','Republik Demokratik Congo','Republik Congo','Kepulauan Cook','Costa Rica','Côte d\'Ivoire (Ivory Coast)','Croatia','Cuba','Curaçao','Cyprus','Republik Turki Cyprus Utara','Republik Czech',
'Denmark','Djibouti','Dominika','Republik Dominika',
'Ecuador','El Salvador','Emiriah Arab Bersatu','Eritrea','Estonia',
'Kepulauan Faroe','Fiji','Filipina','Finland',
'Gabon','Gambia','Georgia','Ghana','Grenada','Greece (Yunani)','Guatemala','Guinea','Guinea-Bissau','Guinea Khatulistiwa','Guiana Perancis','Guyana',
'Habsyah (Etiopia)','Haiti','Honduras','Hungary',
'Iceland','India','Indonesia','Iran','Iraq','Ireland','Israel','Itali',
'Jamaika','Jepun','Jerman','Jordan',
'Kanada','Kazakhstan','Kemboja','Kenya','Kiribati','Korea Selatan','Korea Utara','Kosovo','Kuwait','Kyrgyzstan',
'Laos','Latvia','Lesotho','Liberia','Libya','Liechtenstein','Lithuania','Lubnan','Luxembourg',
'Macedonia','Madagaskar','Maghribi','Malawi','Malaysia','Maldives','Mali','Malta','Kepulauan Marshall','Mauritania','Mauritius','Mesir','Mexico','Persekutuan Micronesia','Moldova','Monaco','Montenegro','Mongolia','Mozambique','Myanmar',
'Namibia','Nauru','Nepal','New Zealand','Nicaragua','Niger','Nigeria','Niue','Norway',
'Oman','Ossetia Selatan',
'Pakistan','Palau','Palestin','Panama','Papua New Guinea','Paraguay','Perancis','Peru','Poland','Portugal',
'Qatar',
'Romania','Russia','Rwanda',
'Sahara Barat','Saint Kitts dan Nevis','Saint Lucia','Saint Vincent dan Grenadines','Samoa','San Marino','São Tomé dan Príncipe','Scotland','Senegal','Sepanyol','Serbia','Seychelles','Sierra Leone','Singapura','Slovakia','Slovenia','Kepulauan Solomon','Somalia','Somaliland','Sri Lanka','Sudan','Sudan Selatan','Suriname','Swaziland','Sweden','Switzerland','Syria',
'Tajikistan','Tanjung Verde','Tanzania','Thailand','Timor Leste','Togo','Tonga','Transnistria','Trinidad dan Tobago','Tunisia','Turki','Turkmenistan','Tuvalu',
'Uganda','Ukraine','United Kingdom','Uruguay','Uzbekistan',
'Vanuatu','Kota Vatican','Venezuela','Vietnam',
'Yaman',
'Zambia','Zimbabwe',
)

https://ms.wikipedia.org/wiki/Senarai_negara_berdaulat

◆ $states

Faker\Provider\ms_MY\Address::$states
staticprotected

◆ $streetAddressFormats

Faker\Provider\ms_MY\Address::$streetAddressFormats
staticprotected
Initial value:
= array(
'{{buildingPrefix}}{{buildingNumber}}, {{streetName}}'
)

◆ $streetNameFormats

Faker\Provider\ms_MY\Address::$streetNameFormats
staticprotected
Initial value:
= array(
'{{streetPrefix}} %',
'{{streetPrefix}} %/%',
'{{streetPrefix}} %/%#',
'{{streetPrefix}} %/%?',
'{{streetPrefix}} %/%#?',
'{{streetPrefix}} %?',
'{{streetPrefix}} %#?',
'{{streetPrefix}} {{streetSuffix}}',
'{{streetPrefix}} {{streetSuffix}} %',
'{{streetPrefix}} {{streetSuffix}} %/%',
'{{streetPrefix}} {{streetSuffix}} %/%#',
'{{streetPrefix}} {{streetSuffix}} %/%?',
'{{streetPrefix}} {{streetSuffix}} %/%#?',
'{{streetPrefix}} {{streetSuffix}} %?',
'{{streetPrefix}} {{streetSuffix}} %#?',
)

◆ $streetPrefix

Faker\Provider\ms_MY\Address::$streetPrefix
staticprotected
Initial value:
= array(
'Jln','Jln',
'Jalan','Jalan','Jalan',
'Lorong'
)

'Jalan' & 'Jln' are more frequently used than 'Lorong'

https://en.wikipedia.org/wiki/List_of_roads_in_Kuala_Lumpur#Standard_translations

◆ $streetSuffix

Faker\Provider\ms_MY\Address::$streetSuffix
staticprotected
Initial value:
= array(
'Air Itam','Alor','Ampang','Ampang Hilir','Anson','Ariffin',
'Bangsar','Baru','Bellamy','Birch','Bijih Timah','Bukit Aman','Bukit Bintang','Bukit Petaling','Bukit Tunku',
'Cantonment','Cenderawasih','Chan Sow Lin','Chow Kit','Cinta','Cochrane','Conlay',
'D. S. Ramanathan','Damansara','Dang Wangi','Davis','Dewan Bahasa','Dato Abdul Rahman','Dato\'Keramat','Dato\' Maharaja Lela','Doraisamy',
'Eaton',
'Faraday',
'Galloway','Genting Klang','Gereja',
'Hang Jebat','Hang Kasturi','Hang Lekir','Hang Lekiu','Hang Tuah','Hospital',
'Imbi','Istana',
'Jelutong',
'Kampung Attap','Kebun Bunga','Kedah','Keliling','Kia Peng','Kinabalu','Kuala Kangsar','Kuching',
'Ledang','Lembah Permai','Loke Yew','Lt. Adnan','Lumba Kuda',
'Madras','Magazine','Maharajalela','Masjid','Maxwell','Mohana Chandran','Muda',
'P. Ramlee','Padang Kota Lama','Pahang','Pantai Baharu','Parlimen','Pasar','Pasar Besar','Perak','Perdana','Petaling','Prangin','Pudu','Pudu Lama',
'Raja','Raja Abdullah','Raja Chulan','Raja Laut','Rakyat','Residensi','Robson',
'S.P. Seenivasagam','Samarahan 1','Selamat','Sempadan','Sentul','Serian 1','Sasaran','Sin Chee','Sultan Abdul Samad','Sultan Azlan Shah','Sultan Iskandar','Sultan Ismail','Sultan Sulaiman','Sungai Besi','Syed Putra',
'Tan Cheng Lock','Thambipillay','Tugu','Tuanku Abdul Halim','Tuanku Abdul Rahman','Tun Abdul Razak','Tun Dr Ismail','Tun H S Lee','Tun Ismail','Tun Perak','Tun Razak','Tun Sambanthan',
'U-Thant','Utama',
'Vermont','Vivekananda',
'Wan Kadir','Wesley','Wisma Putra',
'Yaacob Latif','Yap Ah Loy','Yap Ah Shak','Yap Kwan Seng','Yew',
'Zaaba','Zainal Abidin'
)

https://en.wikipedia.org/wiki/List_of_roads_in_Ipoh https://en.wikipedia.org/wiki/Transportation_in_Seremban#Inner_city_roads https://en.wikipedia.org/wiki/List_of_streets_in_George_Town,_Penang

◆ $towns

Faker\Provider\ms_MY\Address::$towns
staticprotected

◆ $townshipFormats

Faker\Provider\ms_MY\Address::$townshipFormats
staticprotected
Initial value:
= array(
'{{townshipPrefix}} {{townshipSuffix}}',
'{{townshipPrefix}} {{townshipSuffix}}',
'{{townshipPrefix}} {{townshipSuffix}}',
'{{townshipPrefix}} {{townshipSuffix}}',
'{{townshipPrefix}} {{townshipSuffix}}',
'{{townshipPrefix}} {{townshipSuffix}}',
'{{townshipPrefixAbbr}}%',
'{{townshipPrefixAbbr}}%#',
'{{townshipPrefixAbbr}}%#?',
)

◆ $townshipPrefix

Faker\Provider\ms_MY\Address::$townshipPrefix
staticprotected
Initial value:
= array(
'Alam','Apartment','Ara',
'Bandar','Bandar','Bandar','Bandar','Bandar','Bandar',
'Bandar Bukit','Bandar Seri','Bandar Sri','Bandar Baru','Batu','Bukit',
'Desa','Damansara',
'Kampung','Kampung Baru','Kampung Baru','Kondominium','Kota',
'Laman','Lembah',
'Medan',
'Pandan','Pangsapuri','Petaling','Puncak',
'Seri','Sri',
'Taman','Taman','Taman','Taman','Taman','Taman',
'Taman Desa',
)

'Bandar' and 'Taman' are the most common township prefix

> Townships https://en.wikipedia.org/wiki/Template:Johor > Townships https://en.wikipedia.org/wiki/Template:Kedah > Townships https://en.wikipedia.org/wiki/Template:Kelantan > Townships https://en.wikipedia.org/wiki/Template:Melaka > Townships https://en.wikipedia.org/wiki/Template:Negeri_Sembilan > Townships https://en.wikipedia.org/wiki/Template:Perak > Townships https://en.wikipedia.org/wiki/Template:Penang > Townships https://en.wikipedia.org/wiki/Template:Selangor > Townships https://en.wikipedia.org/wiki/Template:Terengganu > Townships

◆ $townshipPrefixAbbr

Faker\Provider\ms_MY\Address::$townshipPrefixAbbr
staticprotected
Initial value:
= array(
'SS','Seksyen ','PJS','PJU','USJ ',
)

https://en.wikipedia.org/wiki/UEP_Subang_Jaya#History

◆ $townshipSuffix

Faker\Provider\ms_MY\Address::$townshipSuffix
staticprotected
Initial value:
= array(
'Aman','Amanjaya','Anggerik','Angkasa','Antarabangsa','Awan',
'Bahagia','Bangsar','Baru','Belakong','Bendahara','Bestari','Bintang','Brickfields',
'Casa','Changkat','Country Heights',
'Damansara','Damai','Dato Harun','Delima','Duta',
'Flora',
'Gembira','Genting',
'Harmoni','Hartamas',
'Impian','Indah','Intan',
'Jasa','Jaya',
'Keramat','Kerinchi','Kiara','Kinrara','Kuchai',
'Laksamana',
'Mahkota','Maluri','Manggis','Maxwell','Medan','Melawati','Menjalara','Meru','Mulia','Mutiara',
'Pahlawan','Perdana','Pertama','Permai','Pelangi','Petaling','Pinang','Puchong','Puteri','Putra',
'Rahman','Rahmat','Raya','Razak','Ria',
'Saujana','Segambut','Selamat','Selatan','Semarak','Sentosa','Seputeh','Setapak','Setia Jaya','Sinar','Sungai Besi','Sungai Buaya','Sungai Long','Suria',
'Tasik Puteri','Tengah','Timur','Tinggi','Tropika','Tun Hussein Onn','Tun Perak','Tunku',
'Ulu','Utama','Utara',
'Wangi',
)

The documentation for this class was generated from the following file: