MediaWiki master
Wikimedia\Message\MessageParam Class Reference

Value object representing a message parameter that consists of a list of values. More...

Inherits MediaWiki\Json\JsonDeserializable.

Inherited by Wikimedia\Message\ListParam, and Wikimedia\Message\ScalarParam.

Collaboration diagram for Wikimedia\Message\MessageParam:

Public Member Functions

 dump ()
 Dump the object for testing/debugging.
 
 getType ()
 Get the type of the parameter.
 
 getValue ()
 Get the input value of the parameter.
 

Protected Attributes

 $type
 
 $value
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\Json\JsonDeserializable
static newFromJsonArray (JsonDeserializer $deserializer, array $json)
 Creates a new instance of the class and initialized it from the $json array.
 

Detailed Description

Value object representing a message parameter that consists of a list of values.

Message parameter classes are pure value objects and are newable and (de)serializable.

Definition at line 13 of file MessageParam.php.

Member Function Documentation

◆ dump()

Wikimedia\Message\MessageParam::dump ( )
abstract

Dump the object for testing/debugging.

Returns
string

Reimplemented in Wikimedia\Message\ListParam, and Wikimedia\Message\ScalarParam.

◆ getType()

Wikimedia\Message\MessageParam::getType ( )

Get the type of the parameter.

Returns
string One of the ParamType constants

Definition at line 24 of file MessageParam.php.

References Wikimedia\Message\MessageParam\$type.

◆ getValue()

Wikimedia\Message\MessageParam::getValue ( )

Get the input value of the parameter.

Returns
mixed

Definition at line 33 of file MessageParam.php.

References Wikimedia\Message\MessageParam\$value.

Member Data Documentation

◆ $type

Wikimedia\Message\MessageParam::$type
protected

◆ $value

Wikimedia\Message\MessageParam::$value
protected

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