Piwik\Columns\

DimensionMetricFactory

A factory to create metrics from a dimension.

Methods

The class defines the following methods:

__construct()

Generates a new dimension metric factory.

Signature

  • It accepts the following parameter(s):
    • $dimension (Dimension) — A dimension instance the created metrics should be based on.

createCustomMetric()

Signature

  • It accepts the following parameter(s):

    • $metricName

    • $readableName

    • $aggregation

    • $documentation

    • $semanticType (string) —

  • It returns a Piwik\Plugin\ArchivedMetric value.

createComputedMetric()

Signature

  • It accepts the following parameter(s):

    • $metricName1

    • $metricName2

    • $aggregation

  • It returns a Piwik\Plugin\ComputedMetric value.

createMetric()

Signature

  • It accepts the following parameter(s):

    • $aggregation
  • It returns a Piwik\Plugin\ArchivedMetric value.