Copied!

MetricInputMapperInterface

MetricInputMapperInterface.php : 20
Interface

Maps a source event object to a normalized metric input.

Implementations are registered with the "ibexa.data_layer.metric_input_mapper" service tag. Every mapper supporting an event contributes its input, in tag priority order. When two mappers return an input of the same class for one event, only the first one is kept; the built-in mappers are tagged with priority 100, so their inputs win over a project mapper with the default one.

Methods

publicmap()

MetricInputMapperInterface.php : 24
public map(object $event) : MetricInputInterface

Parameters

Name Type Default value Description
$event object - -

Return values

MetricInputInterface

publicsupports()

MetricInputMapperInterface.php : 22
public supports(object $event) : bool

Parameters

Name Type Default value Description
$event object - -

Return values

bool