MediaWiki  1.34.0
Wikimedia\Message\ScalarParam Class Reference

Value object representing a message parameter holding a single value. More...

Inheritance diagram for Wikimedia\Message\ScalarParam:
Collaboration diagram for Wikimedia\Message\ScalarParam:

Public Member Functions

 __construct ( $type, $value)
 Construct a text parameter. More...
 
 dump ()
 Dump the object for testing/debugging. More...
 
- Public Member Functions inherited from Wikimedia\Message\MessageParam
 getType ()
 Get the type of the parameter. More...
 
 getValue ()
 Get the input value of the parameter. More...
 

Additional Inherited Members

- Protected Attributes inherited from Wikimedia\Message\MessageParam
 $type
 
 $value
 

Detailed Description

Value object representing a message parameter holding a single value.

Message parameter classes are pure value objects and are safely newable.

Definition at line 10 of file ScalarParam.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Message\ScalarParam::__construct (   $type,
  $value 
)

Construct a text parameter.

Parameters
string$typeOne of the ParamType constants.
string | int | float | MessageValue$value

Definition at line 17 of file ScalarParam.php.

References Wikimedia\Message\MessageParam\$type, Wikimedia\Message\MessageParam\$value, and value.

Member Function Documentation

◆ dump()

Wikimedia\Message\ScalarParam::dump ( )

Dump the object for testing/debugging.

Returns
string

Reimplemented from Wikimedia\Message\MessageParam.

Definition at line 22 of file ScalarParam.php.

References value.


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