Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Added locale Uganda #454

Merged
merged 19 commits into from
Jan 4, 2015
Merged
129 changes: 129 additions & 0 deletions src/Faker/Provider/en_UG/Address.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?php

namespace Faker\Provider\en_UG;

class Address extends \Faker\Provider\Address
{
protected static $cityFormats = array(
'{{cityName}}'
);

/**
* @link http://en.wikipedia.org/wiki/List_of_cities_and_towns_in_Uganda
*/
protected static $cityName = array(
'Alebtong','Abim','Adjumani','Amolatar','Amuria','Amuru','Apac','Arua',
'Bombo','Budaka','Bugembe','Bugiri','Bukedea','Bulisa','Buikwe','Bundibugyo',
'Busembatya','Bushenyi','Busia','Busolwe','Butaleja','Buwenge',
'Dokolo',
'Entebbe',
'Fort Portal',
'Gulu',
'Hima','Hoima',
'Ibanda','Iganga','Isingiro',
'Jinja',
'Kaabong','Kabale','Kaberamaido','Kabwohe','Kagadi','Kakinga','Kakiri','Kalangala','Kaliro',
'Kalisizo','Kalongo','Kalungu','Kampala','Kamuli','Kanoni','Kamwenge','Kanungu','Kapchorwa',
'Kasese','Katakwi','Kayunga','Kibaale','Kiboga','Kihiihi','Kiira','Kiruhura','Kiryandongo',
'Kisoro','Kitgum','Koboko','Kotido','Kumi','Kyenjojo','Kyotera',
'Lira','Lugazi','Lukaya','Luwero','Lwakhakha','Lwengo','Lyantonde',
'Malaba','Manafwa','Masaka','Masindi','Masindi Port','Matugga','Mayuge','Mbale','Mbarara',
'Mitooma','Mityana','Mpigi','Mpondwe','Moroto','Moyo','Mubende','Mukono','Mutukula',
'Nagongera','Nakaseke','Nakasongola','Nakapiripirit','Namutumba','Nansana','Nebbi','Ngora',
'Njeru','Nkokonjeru','Ntungamo',
'Oyam',
'Pader','Paidha','Pakwach','Pallisa',
'Rakai','Rukungiri',
'Sembabule','Sironko','Soroti',
'Tororo',
'Wakiso','Wobulenzi',
'Yumbe'
);

protected static $country = array(
'Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica (the territory South of 60 deg S)', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan',
'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Bouvet Island (Bouvetoya)', 'Brazil', 'British Indian Ocean Territory (Chagos Archipelago)', 'British Virgin Islands', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi',
'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Costa Rica', 'Cote d\'Ivoire', 'Croatia', 'Cuba', 'Cyprus', 'Czech Republic',
'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic',
'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia',
'Faroe Islands', 'Falkland Islands (Malvinas)', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Territories',
'Gabon', 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana',
'Haiti', 'Heard Island and McDonald Islands', 'Holy See (Vatican City State)', 'Honduras', 'Hong Kong', 'Hungary',
'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Isle of Man', 'Israel', 'Italy',
'Jamaica', 'Japan', 'Jersey', 'Jordan',
'Kazakhstan', 'Kenya', 'Kiribati', 'Korea', 'Korea', 'Kuwait', 'Kyrgyz Republic',
'Lao People\'s Democratic Republic', 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lithuania', 'Luxembourg',
'Macao', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia', 'Moldova', 'Monaco', 'Mongolia', 'Montenegro', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar',
'Namibia', 'Nauru', 'Nepal', 'Netherlands Antilles', 'Netherlands', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island', 'Northern Mariana Islands', 'Norway',
'Oman',
'Pakistan', 'Palau', 'Palestinian Territory', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn Islands', 'Poland', 'Portugal', 'Puerto Rico',
'Qatar',
'Reunion', 'Romania', 'Russian Federation', 'Rwanda',
'Saint Barthelemy', 'Saint Helena', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Martin', 'Saint Pierre and Miquelon', 'Saint Vincent and the Grenadines', 'Samoa', 'San Marino', 'Sao Tome and Principe', 'Saudi Arabia', 'Senegal', 'Serbia', 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia (Slovak Republic)', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia and the South Sandwich Islands', 'Spain', 'Sri Lanka', 'Sudan', 'Suriname', 'Svalbard & Jan Mayen Islands', 'Swaziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic',
'Taiwan', 'Tajikistan', 'Tanzania', 'Thailand', 'Timor-Leste', 'Togo', 'Tokelau', 'Tonga', 'Trinidad and Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks and Caicos Islands', 'Tuvalu',
'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States of America', 'United States Minor Outlying Islands', 'United States Virgin Islands', 'Uruguay', 'Uzbekistan',
'Vanuatu', 'Venezuela', 'Vietnam',
'Wallis and Futuna', 'Western Sahara',
'Yemen',
'Zambia', 'Zimbabwe'
);

/**
* @link http://en.wikipedia.org/wiki/Category:Districts_of_Uganda
*/
protected static $district = array(
'Abim','Adjumani','Agago','Alebtong','Amolatar','Amudat','Amuria','Amuru','Apac','Arua',
'Budaka','Bududa','Bugiri','Buhweju','Buikwe','Bukedea','Bukomansimbi','Bukwo','Bulambuli',
'Buliisa','Bundibugyo','Bushenyi','Busia','Butaleja','Butambala','Buvuma','Buyende',
'Dokolo',
'Gomba','Gulu',
'Hoima',
'Ibanda','Iganga','Isingiro',
'Jinja',
'Kaabong','Kabale','Kabarole','Kaberamaido','Kalangala','Kaliro','Kalungu','Kampala','Kamuli',
'Kamwenge','Kanungu','Kapchorwa','Kasese','Katakwi','Kayunga','Kibaale','Kiboga','Kibuku',
'Kigezi','Kiruhura','Kiryandongo','Kisoro','Kitgum','Koboko','Kole','Kotido','Kumi','Kween',
'Kyankwanzi','Kyegegwa','Kyenjojo',
'Lamwo','Lira','Luuka','Luweero','Lwengo','Lyantonde',
'Manafwa','Maracha','Maracha-Terego','Masaka','Masindi','Mayuge','Mbale','Mbarara','Mitooma',
'Mityana','Moroto','Moyo','Mpigi','Mubende','Mukono',
'Nakapiripirit','Nakaseke','Nakasongola','Namayingo','Namutumba','Napak','Nebbi','Ngora',
'Ntoroko','Ntungamo','Nwoya',
'Otuke','Oyam',
'Pader','Pallisa',
'Rakai','Rubirizi','Rukungiri',
'Sembabule','Serere','Sheema','Sironko','Soroti',
'Tororo',
'Wakiso',
'Yumbe',
'Zombo'
);

protected static $postcode = array( '#', "##", "###", "####", "#####" );

protected static $region = array( 'Central', 'East', 'North', 'West' );

/**
* @example 'Fort Portal'
*/
public static function cityName()
{
return static::randomElement(static::$cityName);
}

/**
* @example 'Kampala'
*/
public static function district()
{
return static::randomElement(static::$district);
}

/**
* @example 'East'
*/
public static function region()
{
return static::randomElement(static::$region);
}
}
9 changes: 9 additions & 0 deletions src/Faker/Provider/en_UG/Internet.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Faker\Provider\en_UG;

class Internet extends \Faker\Provider\Internet
{
protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com', 'gmail.co.ug', 'yahoo.co.ug', 'hotmail.co.ug');
protected static $tld = array('com', 'com', 'com', 'com', 'com', 'com', 'biz', 'info', 'net', 'org', 'co.ug', 'ug');
}
137 changes: 137 additions & 0 deletions src/Faker/Provider/en_UG/Person.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?php

namespace Faker\Provider\en_UG;

class Person extends \Faker\Provider\Person
{
protected static $lastNameFormats = array(
'{{lastName}}',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't make sense to me. The last name is either male or female, why is there a third case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are last names that are specifically female only and those that are male only and those that cut across

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at http://www.top-100-baby-names-search.com/ugandan-baby-names.html for some examples, note, this site isn't my source but it has examples like Kigongo being used as both female and male

'{{lastNameMale}}',
'{{lastNameFemale}}'
);

/**
* It is very common in Uganda for people to arrange their names as
* lastname(surname) firstname
*/
protected static $maleNameFormats = array(
'{{firstNameMale}} {{lastName}}',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that make sense to have a male first name with a female last name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe you are talking about $lastNameFormat and there isn't any occurence of male first name and female last name

'{{lastName}} {{firstNameMale}}',
'{{firstNameMale}} {{lastNameMale}}',
'{{lastNameMale}} {{firstNameMale}}'
);

/**
* It is very common in Uganda for people to arrange their names as
* lastname(surname) firstname
*/
protected static $femaleNameFormats = array(
'{{firstNameFemale}} {{lastName}}',
'{{lastName}} {{firstNameFemale}}',
'{{firstNameFemale}} {{lastNameFemale}}',
'{{lastNameFemale}} {{firstNameFemale}}'
);

protected static $firstNameMale = array(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide a reference link as a phpdoc comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I've been trying to find a formal source/reference but this type of info for my the locale is not well documented, had to compile them myself.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's problematic. Usually, I ask for a reference of a census or statistical analysis from births. In the absence of it, you need to point to your data sources to let future maintainers update the list if necessary.

'Aaron','Abdul','Abdullah','Abraham','Adam','Agustin','Ahmad','Ahmed','Akeem','Albert','Alex','Alfred','Ali','Allan','Allen','Alvin','Amani','Ambrose','Amos','Anderson','Andrew','Angel','Anthony','Arnold','Arthur','Austin',
'Barnet','Barry','Ben','Benjamin','Bennie','Benny','Bernard','Berry','Berta','Bertha','Bill','Billy','Bobby','Boyd','Bradley','Brian','Bruce',
'Caesar','Caleb','Carol','Cecil','Charles','Charlie','Chris','Christian','Christopher','Cleveland','Clifford','Clinton','Collin','Conrad',
'Dan','Daren','Dave','David','Dax','Denis','Dennis','Derek','Derick','Derrick','Don','Donald','Douglas','Dylan',
'Earnest','Eddie','Edgar','Edison','Edmond','Edmund','Edward','Edwin','Elias','Elijah','Elliot','Emanuel','Emmanuel','Eric','Ernest','Ethan','Eugene','Ezra',
'Felix','Francis','Frank','Frankie','Fred',
'Gaetano','Gaston','Gavin','Geoffrey','George','Gerald','Gideon','Gilbert','Glen','Godfrey','Graham','Gregory',
'Hans','Harold','Henry','Herbert','Herman','Hillary','Howard',
'Ian','Isaac','Isaiah','Ismael',
'Jabari','Jack','Jackson','Jacob','Jamaal','Jamal','Jasper','Jayson','Jeff','Jeffery','Jeremy','Jimmy','Joe','Joel','Joesph','Johathan','John','Johnathan','Johnny','Johnson','Jonathan','Jordan','Joseph','Joshua','Julian','Julio','Julius','Junior',
'Kaleb','Keith','Kelly','Kelvin','Ken','Kennedy','Kenneth','Kevin','Kim',
'Lawrence','Lewis','Lincoln','Lloyd','Luis','Luther',
'Mackenzie','Martin','Marvin','Mathew','Mathias','Matt','Maurice','Max','Maxwell','Mckenzie','Micheal','Mike','Milton','Mitchel','Mitchell','Mohamed','Mohammad','Mohammed','Morris','Moses','Muhammad','Myles',
'Nasir','Nat','Nathan','Newton','Nicholas','Nick','Nicklaus','Nickolas','Nicolas','Noah','Norbert',
'Oscar','Owen',
'Patrick','Paul','Peter','Philip',
'Rashad','Rasheed','Raul','Ray','Raymond','Reagan','Regan','Richard','Richie','Rick','Robb','Robbie','Robert','Robin','Roger','Rogers','Ronald','Rowland','Royal','Ryan',
'Sam','Samson','Sean','Shawn','Sid','Sidney','Solomon','Steve','Stevie','Stewart','Stuart',
'Taylor','Theodore','Thomas','Timmy','Timothy','Titus','Tom','Tony','Travis','Trevor','Troy','Trystan','Tyler','Tyson',
'Victor','Vince','Vincent','Vinnie',
'Walter','Warren','Wilford','Wilfred','Will','William','Willis','Willy','Wilson'
);

protected static $firstNameFemale = array(
'Abigail','Adela','Adrianna','Adrienne','Aisha','Alice','Alisha','Alison','Amanda','Amelia','Amina','Amy','Anabel','Anabelle','Angela','Angelina','Angie','Anita','Anna','Annamarie','Anne','Annette','April','Arianna','Ariela','Asha','Ashley','Ashly','Audrey','Aurelia',
'Barbara','Beatrice','Bella','Bernadette','Beth','Bethany','Bethel','Betsy','Bette','Bettie','Betty','Blanche','Bonita','Bonnie','Brenda','Bridget','Bridgette','Carissa','Carol','Carole','Carolina','Caroline','Carolyn','Carolyne','Catharine','Catherine','Cathrine','Cathryn','Cathy','Cecelia','Cecile','Cecilia','Charity','Charlotte','Chloe','Christina','Christine','Cindy','Claire','Clara','Clarissa','Claudine','Cristal','Crystal','Cynthia',
'Dahlia','Daisy','Daniela','Daniella','Danielle','Daphne','Daphnee','Daphney','Darlene','Deborah','Destiny','Diana','Dianna','Dina','Dolly','Dolores','Donna','Dora','Dorothy','Dorris',
'Edna','Edwina','Edyth','Elizabeth','Ella','Ellen','Elsa','Elsie','Emelia','Emilia','Emilie','Emily','Emma','Emmanuelle','Erica','Esta','Esther','Estella','Eunice','Eva','Eve','Eveline','Evelyn',
'Fabiola','Fatima','Fiona','Flavia','Flo','Florence','Frances','Francesca','Francisca','Frida',
'Gabriella','Gabrielle','Genevieve','Georgiana','Geraldine','Gertrude','Gladys','Gloria','Grace','Gracie',
'Helen','Hellen','Hilda','Hillary','Hope',
'Imelda','Isabel','Isabell','Isabella','Isabelle',
'Jackie','Jacklyn','Jacky','Jaclyn','Jacquelyn','Jane','Janelle','Janet','Jaquelin','Jaqueline','Jenifer','Jennifer','Jessica','Joan','Josephine','Joy','Joyce','Juanita','Julia','Juliana','Julie','Juliet','Justine',
'Katarina','Katherine','Katheryn','Katrina',
'Laura','Leah','Leila','Lilian','Lillian','Lilly','Lina','Linda','Lisa','Lora','Loraine','Lucie','Lucy','Lulu','Lydia',
'Mabel','Maggie','Mandy','Margaret','Margarete','Margret','Maria','Mariah','Mariam','Marian','Mariana','Mariane','Marianna','Marianne','Marie','Marilyne','Marina','Marion','Marjorie','Marjory','Marlene','Mary','Matilda','Maudie','Maureen','Maya','Meagan','Melisa','Melissa','Melody','Michele','Michelle','Minerva','Minnie','Miracle','Monica',
'Nadia','Naomi','Naomie','Natalia','Natalie','Natasha','Nichole','Nicole','Nina','Nora',
'Pamela','Patience','Patricia','Pauline','Pearl','Phoebe','Phyllis','Pink','Pinkie','Priscilla','Prudence',
'Rachael','Rachel','Rebeca','Rebecca','Rhoda','Rita','Robyn','Rose','Rosemary','Ruth','Ruthe','Ruthie',
'Sabina','Sabrina','Salma','Samantha','Sandra','Sandy','Sarah','Serena','Shakira','Sharon','Sheila','Sierra','Sonia','Sonya','Sophia','Sophie','Stacey','Stacy','Stella','Susan','Susana','Susanna','Susie','Suzanne','Sylvia',
'Tabitha','Teresa','Tess','Theresa','Tia','Tiffany','Tina','Tracy','Trinity','Trisha','Trudie','Trycia',
'Ursula',
'Valentine','Valerie','Vanessa','Veronica','Vickie','Vicky','Victoria','Viola','Violet','Violette','Viva','Vivian','Viviane','Vivianne','Vivien','Vivienne',
'Wanda','Wendy','Whitney','Wilma','Winifred',
'Yvette','Yvonne',
'Zita','Zoe'
);

protected static $lastNameMale = array(
'Mubiru','Muwanguzi','Muwonge',
'Nsamba',
'Obol','Odeke','Okumu','Okumuringa','Opega','Opio','Orishaba','Osiki','Ouma',
'Sekandi','Semande','Serwanga','Ssebatta','Ssebugulu','Ssebunya','Ssebuuma','Ssebyala','Ssegawa','Ssekabira','Ssekanjako','Ssekate','Ssekibuule','Ssekidde','Ssekiranda','Ssekitooleko','Ssekubulwa','Ssempija','Ssempungu','Ssemwezi','Ssendege','Ssenjovu','Ssenkaali','Ssentezza','Ssentongo','Sserubiri','Sseruyinda','Ssettende',
);

protected static $lastNameFemale = array(
'Abol','Adeke','Aketch','Akoth','Akumu','Aol','Apega','Apio','Auma','Awori','Ayo',
'Babirye',
'Chandiru',
'Dushime',
'Kabatesi','Kabonesa','Kaitesi','Kakiiza','Kakuze','Kaliisa','Karungi','Katusiime','Kebirungi','Kyomi','Kyoshabire',
'Mahoro','Murungi',
'Nabaale','Nabaggala','Nabakooza','Nabaloga','Nabankema','Nabasirye','Nabaweesi','Nabayunga','Nabbona','Nabise','Nabukeera','Nabunya','Nabuufu','Nabuuso','Nabwami','Nakaayi','Nakabugo','Nakabuye','Nakafeero','Nakalanzi','Nakalunda','Nakasinde','Nakasolya','Nakasumba','Nakato','Nakaweesa','Nakazibwe','Nakiboneka','Nakidde','Nakigozi','Nakiguli','Nakimbugwe','Nakimuli','Nakinobe','Nakiridde','Nakisige','Nakitende','Nakiyemba','Nakku','Nakyagaba','Nakyanzi','Nalubuga','Nalubwama','Nalukwago','Naluyima','Nalweyiso','Nalwoga','Namaganda','Namagembe','Namatovu','Nambi','Nambogo','Nambooze','Nambuusi','Namenya','Namiiro','Namirembe','Nampemba','Nampijja','Namubiru','Namuddu','Namugenyi','Namugwanya','Namukwaya','Namuleme','Namulindwa','Namutebi','Nankindu','Nankinga','Nanteeza','Nantongo','Nanvule','Nanyanzi','Nanyombi','Nanyondo','Nanyonjo','Nassimwba','Nazziwa','Ndagire'
);

protected static $lastname = array(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand, why are there names both in this lista and in the genre list?

'Abayisenga','Adeke','Agaba','Ahebwe','Aisu','Akankunda','Akankwasa','Akashaba','Akashabe','Ampumuza','Ankunda','Asasira','Asiimwe','Atuhe','Atuhire','Atukunda','Atukwase','Atwine','Aurishaba',
'Badru','Baguma','Bakabulindi','Bamwiine','Barigye','Bbosa','Bisheko','Biyinzika','Bugala','Bukenya','Buyinza','Bwana','Byanyima','Byaruhanga',
'Ddamulira',
'Gamwera',
'Ijaga','Isyagi',
'Kaaya','Kabanda','Kabuubi','Kabuye','Kafeero','Kagambira','Kakooza','Kalumba','Kanshabe','Kansiime','Kanyesigye','Kareiga','Kasekende','Kasumba','Kateregga','Katusiime','Kawooya','Kawuki','Kayemba','Kazibwe','Kibirige','Kiconco','Kiganda','Kijjoba','Kirabira','Kirabo','Kirigwajjo','Kisitu','Kitovu','Kityamuwesi','Kivumbi','Kiwanuka','Kyambadde',
'Lunyoro',
'Mbabazi','Migisha','Mugisa','Mugisha','Muhwezi','Mukalazi','Mulalira','Munyagwa','Murungi','Mushabe','Musinguzi','Mutabuza','Muyambi','Mwesige','Mwesigye',
'Nabasa','Nabimanya','Nankunda','Natukunda','Nayebare','Nimukunda','Ninsiima','Nkoojo','Nkurunungi','Nuwagaba','Nuwamanya','Nyeko',
'Obol','Odeke','Okumu','Okumuringa','Opega','Orishaba','Osiki','Ouma',
'Rubalema','Rusiimwa','Rwabyoma',
'Tamale','Tendo','Tizikara','Tuhame','Tumusiime','Tumwebaze','Tumwesigye','Tumwiine','Turyasingura','Tusiime','Twasiima','Twesigomwe',
'Wasswa','Wavamuno','Were'
);

public function lastName($gender = null)
{
if ($gender === static::GENDER_MALE) {
return static::lastNameMale();
} elseif ($gender === static::GENDER_FEMALE) {
return static::lastNameFemale();
}

return $this->generator->parse(static::randomElement(static::$lastNameFormats));
}

public static function lastNameMale()
{
return static::randomElement(static::$lastNameMale);
}

public static function lastNameFemale()
{
return static::randomElement(static::$lastNameFemale);
}
}
17 changes: 17 additions & 0 deletions src/Faker/Provider/en_UG/PhoneNumber.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Faker\Provider\en_UG;

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
'+256 7## ### ###',
'+2567########',
'+256 4## ### ###',
'+2564########',
'07## ### ###',
'07########',
'04## ### ###',
'04########'
);
}