MediaWiki
1.34.4
|
Value object representing a message parameter that consists of a list of values. More...
Public Member Functions | |
__construct ( $listType, array $elements) | |
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 | |
$listType | |
Additional Inherited Members | |
Protected Attributes inherited from Wikimedia\Message\MessageParam | |
$type | |
$value | |
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 10 of file ListParam.php.
Wikimedia\Message\ListParam::__construct | ( | $listType, | |
array | $elements | ||
) |
string | $listType | One 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 18 of file ListParam.php.
References Wikimedia\Message\ListParam\$listType, Wikimedia\Message\ParamType\LIST, and Wikimedia\Message\ParamType\TEXT.
Wikimedia\Message\ListParam::dump | ( | ) |
Dump the object for testing/debugging.
Reimplemented from Wikimedia\Message\MessageParam.
Definition at line 43 of file ListParam.php.
Wikimedia\Message\ListParam::getListType | ( | ) |
Get the type of the list.
Definition at line 39 of file ListParam.php.
References Wikimedia\Message\ListParam\$listType.
|
private |
Definition at line 11 of file ListParam.php.
Referenced by Wikimedia\Message\ListParam\__construct(), and Wikimedia\Message\ListParam\getListType().