Skip to content
Last updated

WHMCS\UsageBilling\Metrics\Metric

Class · implements MetricInterface

Metric

Methods

__construct

public function __construct($systemName, $displayName = null, $type = null, UnitInterface $units = null, UsageInterface $usage = null)

Metric

Parameters

TypeNameDescription
string$systemNameCanonical name to be used by code and between systems
string$displayNameText containing a friendly name to render in UI to users
string|null$typeThe metric type, one of MetricInterface::TYPE_*
UnitInterface|null$units
UsageInterface|null$usage

usage

public function usage()

withUsage

public function withUsage(UsageInterface $usage = null)

units

public function units()

systemName

public function systemName()

displayName

public function displayName()

type

public function type()