Skip to content

Commit 1e7d7b3

Browse files
committed
(renamed class)
1 parent cfe6105 commit 1e7d7b3

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ $inputPerson2 = NaturalInputPerson::builder()
132132
->fullname( "Jack Kennedy" )
133133
->build())
134134
->build();
135-
$personMatchResult = $personMatcher->match($inputPerson1, $inputPerson2);
136-
echo $personMatchResult->getPersonMatchType()->toString(); //will print 'MATCHING'
135+
$personMatcherResult = $personMatcher->match($inputPerson1, $inputPerson2);
136+
echo $personMatcherResult->getPersonMatchType()->toString(); //will print 'MATCHING'
137137
```
138138

139139

src/org/nameapi/client/services/matcher/personmatcher/PersonMatchResult.php renamed to src/org/nameapi/client/services/matcher/personmatcher/PersonMatcherResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
require_once(__DIR__.'/../AgeMatch.php');
1414

1515

16-
class PersonMatchResult {
16+
class PersonMatcherResult {
1717

1818
/**
1919
* @var PersonMatchType $personMatchType

src/org/nameapi/client/services/matcher/personmatcher/PersonMatcherService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use org\nameapi\client\services\matcher\AgeMatch;
1313

1414
require_once(__DIR__.'/wsdl/SoapPersonMatcherService.php');
15-
require_once(__DIR__.'/PersonMatchResult.php');
15+
require_once(__DIR__.'/PersonMatcherResult.php');
1616

1717

1818
/**
@@ -39,15 +39,15 @@ public function __construct(Context $context) {
3939
/**
4040
* @param NaturalInputPerson $person1
4141
* @param NaturalInputPerson $person2
42-
* @return PersonMatchResult
42+
* @return PersonMatcherResult
4343
*/
4444
public function match(NaturalInputPerson $person1, NaturalInputPerson $person2) {
4545
$parameters = new wsdl\MatchArguments($this->context, $person1, $person2);
4646
$result = $this->soapPersonMatcher->match($parameters);
4747

4848
$genderWarnings = isSet($result->genderMatch->warnings) ? $result->genderMatch->warnings : null;
4949

50-
return new PersonMatchResult(
50+
return new PersonMatcherResult(
5151
new PersonMatchType($result->personMatchType),
5252
new PersonMatchComposition($result->personMatchComposition),
5353
$result->points, $result->confidence,

tests/functional/org/nameapi/client/services/matcher/personmatcher/PersonMatcherServiceTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public function testMatch_matching() {
2323
->fullname( "Jack Kennedy" )
2424
->build())
2525
->build();
26-
$personMatchResult = $personMatcher->match($inputPerson1, $inputPerson2);
27-
$this->assertEquals('MATCHING', (string)$personMatchResult->getPersonMatchType());
26+
$personMatcherResult = $personMatcher->match($inputPerson1, $inputPerson2);
27+
$this->assertEquals('MATCHING', (string)$personMatcherResult->getPersonMatchType());
2828
}
2929

3030
public function testMatch_similar() {
@@ -41,8 +41,8 @@ public function testMatch_similar() {
4141
->build())
4242
->ageInfo( AgeInfoFactory::forDate(1990,12,31) )
4343
->build();
44-
$personMatchResult = $personMatcher->match($inputPerson1, $inputPerson2);
45-
$this->assertEquals('SIMILAR', (string)$personMatchResult->getPersonMatchType());
44+
$personMatcherResult = $personMatcher->match($inputPerson1, $inputPerson2);
45+
$this->assertEquals('SIMILAR', (string)$personMatcherResult->getPersonMatchType());
4646
}
4747

4848
public function testMatch_different() {
@@ -59,8 +59,8 @@ public function testMatch_different() {
5959
->build())
6060
->ageInfo( AgeInfoFactory::forDate(1990,12,31) )
6161
->build();
62-
$personMatchResult = $personMatcher->match($inputPerson1, $inputPerson2);
63-
$this->assertEquals('DIFFERENT', (string)$personMatchResult->getPersonMatchType());
62+
$personMatcherResult = $personMatcher->match($inputPerson1, $inputPerson2);
63+
$this->assertEquals('DIFFERENT', (string)$personMatcherResult->getPersonMatchType());
6464
}
6565

6666
}

0 commit comments

Comments
 (0)