LocationFieldMapper
LocationFieldMapper.php
:
16
Base class for Location document field mappers.
Location document field mapper maps Location to the search fields for Location document.
Methods¶
accept() ¶
LocationFieldMapper.php
:
23
Indicates if the mapper accepts given $location for mapping.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$location | Location | - | - |
Return values
bool
mapFields() ¶
LocationFieldMapper.php
:
30
Maps given $location to an array of search fields.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$location | Location | - | - |
Return values
array<string|int, Field>