Merge "Provide command to adjust phpunit.xml for code coverage"
[lhc/web/wiklou.git] / includes / libs / Message / MessageParam.php
1 <?php
2
3 namespace Wikimedia\Message;
4
5 /**
6 * Value object representing a message parameter that consists of a list of values.
7 *
8 * Message parameter classes are pure value objects and are safely newable.
9 */
10 abstract class MessageParam {
11 protected $type;
12 protected $value;
13
14 /**
15 * Get the type of the parameter.
16 *
17 * @return string One of the ParamType constants
18 */
19 public function getType() {
20 return $this->type;
21 }
22
23 /**
24 * Get the input value of the parameter
25 *
26 * @return mixed
27 */
28 public function getValue() {
29 return $this->value;
30 }
31
32 /**
33 * Dump the object for testing/debugging
34 *
35 * @return string
36 */
37 abstract public function dump();
38 }