MediaWiki  master
Wikimedia\Metrics\Sample Class Reference

Public Member Functions

 __construct (array $data)
 
 getLabels ()
 
 getValue ()
 

Private Attributes

string[] $labels
 
float $value
 

Detailed Description

Definition at line 31 of file Sample.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Metrics\Sample::__construct ( array  $data)
Parameters
array$dataassociative array:
  • labels: (string[]) Array of label values associated with the metric
  • value: (numeric) The metric value

Definition at line 43 of file Sample.php.

Member Function Documentation

◆ getLabels()

Wikimedia\Metrics\Sample::getLabels ( )

◆ getValue()

Wikimedia\Metrics\Sample::getValue ( )

Member Data Documentation

◆ $labels

string [] Wikimedia\Metrics\Sample::$labels
private

Definition at line 34 of file Sample.php.

Referenced by Wikimedia\Metrics\Sample\getLabels().

◆ $value

float Wikimedia\Metrics\Sample::$value
private

Definition at line 37 of file Sample.php.

Referenced by Wikimedia\Metrics\Sample\getValue().


The documentation for this class was generated from the following file: