1: <?php
2: namespace Datadepo\Api\Structures;
3:
4: /**
5: * @property-read string $groupName
6: * @property-read string $titleName
7: * @property-read string $value
8: * @property-read string $mj
9: */
10: class ParameterLine extends AbstractStructure
11: {
12:
13: /**
14: * @param array $data
15: */
16: public function __construct($data)
17: {
18: $this->data = $data;
19: }
20:
21: /**
22: * @return string
23: */
24: public function getJson()
25: {
26: return json_encode($this->data);
27: }
28:
29: /**
30: * @return string
31: */
32: public function getGroupName()
33: {
34: return isset($this->data->groupName) ? $this->data->groupName : NULL;
35: }
36:
37: /**
38: * @return string
39: */
40: public function getTitleName()
41: {
42: return isset($this->data->titleName) ? $this->data->titleName : NULL;
43: }
44:
45: /**
46: * @return string
47: */
48: public function getMj()
49: {
50: return isset($this->data->mj) ? $this->data->mj : NULL;
51: }
52:
53: /**
54: * @return string
55: */
56: public function getValue()
57: {
58: return $this->data->value;
59: }
60:
61:
62:
63: }