Skip to content

Commit d2f5128

Browse files
Update RecordMatcherService.php
1 parent a93e806 commit d2f5128

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1+
<?php
12

3+
namespace App\Services\RecordMatcher\Providers;
4+
5+
use App\Models\Person;
6+
7+
class ExampleProvider implements ExternalRecordProviderInterface
8+
{
9+
public function search($localPerson): array
10+
{
11+
// Stub: in production replace with a real API client to FamilySearch, Ancestry, etc.
12+
// Return an array of candidate records.
13+
return [
14+
[
15+
'id' => 'example-1',
16+
'first_name' => 'John',
17+
'last_name' => 'Doe',
18+
'birth_year' => 1879,
19+
'birth_place' => 'County X',
20+
],
21+
];
22+
}
23+
}

0 commit comments

Comments
 (0)