MediaWiki  1.28.0
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

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

DeferredStringifier::__toString ( )

Get the string generated from the callback.

Returns
string

Definition at line 51 of file DeferredStringifier.php.

References $result.

Member Data Documentation

callable DeferredStringifier::$callback
private

Callback used for result string generation.

Definition at line 28 of file DeferredStringifier.php.

Referenced by __construct().

array DeferredStringifier::$params
private

Definition at line 31 of file DeferredStringifier.php.

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: