Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4149916
Sample.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
689 B
Referenced Files
None
Subscribers
None
Sample.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
declare
(
strict_types
=
1
);
namespace
Wikimedia\Stats
;
/**
* A container for a metric sample to be passed to the rendering function.
*
* @author Cole White
* @since 1.41
*/
class
Sample
{
/** @var string[] */
private
array
$labelValues
;
private
float
$value
;
/**
* @param string[] $labelValues
* @param float $value
*/
public
function
__construct
(
array
$labelValues
,
float
$value
)
{
$this
->
labelValues
=
$labelValues
;
$this
->
value
=
$value
;
}
/** @return string[] */
public
function
getLabelValues
():
array
{
return
$this
->
labelValues
;
}
public
function
getValue
():
float
{
return
$this
->
value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 19:21 (6 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3d/29/5d345eda0c403259f77b63d8111a
Default Alt Text
Sample.php (689 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment