Exemple #1
0
 private function populatePerson(PersonEntity $person)
 {
     $genders = [0, 1, 2, 9];
     $gender = $genders[Rand::getInteger(0, count($genders) - 1)];
     $person->setGender($gender);
     $person->setJobTitle('Software Engineer');
     $person->setDepartment('Department');
     if ($gender === 2) {
         $person->setMaidenName('Maiden name');
     }
     $person->setNickname('Nickname');
 }