Copied!

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

publicaccept()

LocationFieldMapper.php : 23

Indicates if the mapper accepts given $location for mapping.

public abstract accept(Location $location) : bool

Parameters

Name Type Default value Description
$location Location - -

Return values

bool

publicmapFields()

LocationFieldMapper.php : 30

Maps given $location to an array of search fields.

public abstract mapFields(Location $location) : array<string|int, Field>

Parameters

Name Type Default value Description
$location Location - -

Return values

array<string|int, Field>