From 3cbde5101a1bc6e4e11e0feca8e880ba7a1eee9e Mon Sep 17 00:00:00 2001 From: myc <200@coobar.com> Date: Tue, 11 Dec 2018 11:05:31 +0800 Subject: [PATCH] add titleMale and titleFemale method to all Person classes --- src/Faker/Provider/zh_CN/Person.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Faker/Provider/zh_CN/Person.php b/src/Faker/Provider/zh_CN/Person.php index 17d48de429..5954c35f4a 100644 --- a/src/Faker/Provider/zh_CN/Person.php +++ b/src/Faker/Provider/zh_CN/Person.php @@ -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,