MediaWiki  master
Wikimedia\Message\ListParam Class Reference

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

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

Public Member Functions

 __construct ( $listType, array $elements)
 Stable to call. More...
 dump ()
 Dump the object for testing/debugging. More...
 getListType ()
 Get the type of the list. 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...

Private Attributes


Additional Inherited Members

- Protected Attributes inherited from Wikimedia\Message\MessageParam

Detailed Description

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

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


Definition at line 12 of file ListParam.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Message\ListParam::__construct (   $listType,
array  $elements 

Stable to call.

string$listTypeOne of the ListType constants.
(MessageParam|MessageValue|string|int|float)[]$elements Values in the list. Values that are not instances of MessageParam are wrapped using ParamType::TEXT.

Definition at line 22 of file ListParam.php.

References Wikimedia\Message\ListParam\$listType, Wikimedia\Message\ParamType\LIST, and Wikimedia\Message\ParamType\TEXT.

Member Function Documentation

◆ dump()

Wikimedia\Message\ListParam::dump ( )

Dump the object for testing/debugging.


Reimplemented from Wikimedia\Message\MessageParam.

Definition at line 44 of file ListParam.php.

◆ getListType()

Wikimedia\Message\ListParam::getListType ( )

Get the type of the list.

string One of the ListType constants

Definition at line 40 of file ListParam.php.

References Wikimedia\Message\ListParam\$listType.

Member Data Documentation

◆ $listType


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