MediaWiki  1.30.2
DeferredStringifier Class Reference
Collaboration diagram for DeferredStringifier:

Public Member Functions

 __construct ( $callback)
 
 __toString ()
 Get the string generated from the callback. More...
 

Private Attributes

callable $callback
 Callback used for result string generation. More...
 
array $params
 
string $result
 

Detailed Description

Since
1.25

Definition at line 26 of file DeferredStringifier.php.

Constructor & Destructor Documentation

◆ __construct()

DeferredStringifier::__construct (   $callback)
Parameters
callable$callbackCallback that gets called by __toString
mixed$param,...Parameters to the callback

Definition at line 40 of file DeferredStringifier.php.

References $callback.

Member Function Documentation

◆ __toString()

DeferredStringifier::__toString ( )

Get the string generated from the callback.

Returns
string

Definition at line 51 of file DeferredStringifier.php.

References $result.

Member Data Documentation

◆ $callback

callable DeferredStringifier::$callback
private

Callback used for result string generation.

Definition at line 28 of file DeferredStringifier.php.

Referenced by __construct().

◆ $params

array DeferredStringifier::$params
private

Definition at line 31 of file DeferredStringifier.php.

◆ $result

string DeferredStringifier::$result
private

Definition at line 34 of file DeferredStringifier.php.

Referenced by __toString().


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