Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4126007
NullMetric.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
NullMetric.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
declare
(
strict_types
=
1
);
namespace
Wikimedia\Stats\Metrics
;
/**
* Null Metric Implementation
*
* When a request from cache yields a type other than what was requested
* or an unrecoverable situation has occurred, an instance of this class
* should be passed to the caller to provide an interface that suppresses
* method calls against it.
*
* @author Cole White
* @since 1.38
*/
class
NullMetric
{
/**
* Silently suppress all undefined method calls.
*
* @param $method_name string
* @param $args array
* @return NullMetric
*/
public
function
__call
(
string
$method_name
,
array
$args
):
NullMetric
{
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 07:50 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7f/84/c2395f2a8f6b1a90c7fe94464a2a
Default Alt Text
NullMetric.php (703 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment