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

add titleMale and titleFemale method to all Person classes #1635

Merged
merged 1 commit into from
Aug 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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