Page MenuHomeWickedGov Phorge

NullMetric.php
No OneTemporary

Size
703 B
Referenced Files
None
Subscribers
None

NullMetric.php

<?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

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)

Event Timeline