Skip to content

Commit caa00f2

Browse files
committed
The PersonGenderResult in ParsedPerson can be null.
1 parent c406399 commit caa00f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/org/nameapi/client/services/parser/personnameparser/ParsedPerson.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ParsedPerson {
4343

4444
public function __construct(PersonType $personType,
4545
PersonRole $personRole,
46-
PersonGenderResult $gender,
46+
$gender,
4747
$addressingGivenName,
4848
$addressingSurname,
4949
OutputPersonName $outputPersonName,
@@ -73,7 +73,7 @@ public function getPersonRole() {
7373
}
7474

7575
/**
76-
* @return PersonGenderResult
76+
* @return PersonGenderResult or null
7777
*/
7878
public function getGender() {
7979
return $this->gender;
@@ -101,12 +101,12 @@ public function getOutputPersonName() {
101101
}
102102

103103
/**
104-
* Returns the people contained withhin this person.
104+
* Returns the people contained within this person.
105105
*
106106
* <p>If the getPersonType() is 'MULTIPLE' then expect content here. But also 'FAMILY' and 'LEGAL' can
107107
* have entries here.</p>
108108
*
109-
* @return ParsedPerson[]
109+
* @return ParsedPerson[] the array may be empty
110110
*/
111111
public function getPeople() {
112112
return $this->people;

0 commit comments

Comments
 (0)