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

Commit

Permalink
Merge pull request #1635 from RiverDanceGit/master
Browse files Browse the repository at this point in the history
add titleMale and titleFemale method to all Person classes
  • Loading branch information
fzaninotto authored Aug 27, 2019
2 parents aaeff4b + 3cbde51 commit 4035b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Faker/Provider/zh_CN/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class Person extends \Faker\Provider\Person
'{{lastName}}{{firstNameFemale}}',
);

protected static $titleMale = array('先生', '医生', '老师', '教授', '律师', '经理');

protected static $titleFemale = array('女士', '小姐', '夫人', '太太', '医生', '老师', '教授', '律师', '经理');

/**
* According to http://baike.baidu.com/view/6109935.htm,
* these are the top 300 lastnames from the 6th Chinese national census of population,
Expand Down

0 comments on commit 4035b07

Please sign in to comment.