|
MediaWiki 1.43.1
|
Value object representing a message parameter that consists of a list of values. More...
Inherits Wikimedia\Message\MessageParam.

Public Member Functions | |
| __construct ( $listType, array $elements) | |
| dump () | |
| Dump the object for testing/debugging. | |
| getListType () | |
| Get the type of the list. | |
Public Member Functions inherited from Wikimedia\Message\MessageParam | |
| getType () | |
| Get the type of the parameter. | |
| getValue () | |
| Get the input value of the parameter. | |
Static Public Member Functions | |
| static | newFromJsonArray (JsonDeserializer $deserializer, array $json) |
| Creates a new instance of the class and initialized it from the $json array. | |
Protected Member Functions | |
| toJsonArray () | |
Additional Inherited Members | |
Protected Attributes inherited from Wikimedia\Message\MessageParam | |
| string | $type |
| mixed | $value |
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 15 of file ListParam.php.
| Wikimedia\Message\ListParam::__construct | ( | $listType, | |
| array | $elements ) |
| string | $listType | One of the ListType constants. |
| (MessageParam|MessageSpecifier|string|int|float)[] | $elements Values in the list. Values that are not instances of MessageParam are wrapped using ParamType::TEXT. |
Definition at line 26 of file ListParam.php.
References Wikimedia\Message\ListType\cases(), 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 51 of file ListParam.php.
| Wikimedia\Message\ListParam::getListType | ( | ) |
Get the type of the list.
Definition at line 47 of file ListParam.php.
|
static |
Creates a new instance of the class and initialized it from the $json array.
| JsonDeserializer | $deserializer | an instance of JsonDeserializer to use for nested properties if they need special care. |
| array | $json |
Implements MediaWiki\Json\JsonDeserializable.
Definition at line 68 of file ListParam.php.
References Wikimedia\Message\ParamType\LIST.
|
protected |
Definition at line 59 of file ListParam.php.