Fix use of GenderCache in ApiPageSet::processTitlesArray
[lhc/web/wiklou.git] / includes / libs / Message / MessageParam.php
1 <?php
2
3 namespace Wikimedia\Message;
4
5 /**
6 * The base class for message parameters.
7 */
8 abstract class MessageParam {
9 protected $type;
10 protected $value;
11
12 /**
13 * Get the type of the parameter.
14 *
15 * @return string One of the ParamType constants
16 */
17 public function getType() {
18 return $this->type;
19 }
20
21 /**
22 * Get the input value of the parameter
23 *
24 * @return int|float|string|array
25 */
26 public function getValue() {
27 return $this->value;
28 }
29
30 /**
31 * Dump the object for testing/debugging
32 *
33 * @return string
34 */
35 abstract public function dump();
36 }