Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
16 | class midcom_response extends Response |
||
17 | { |
||
18 | /** |
||
19 | * Character encoding to use |
||
20 | * |
||
21 | * @todo determine on the fly? |
||
22 | * @var string Character encoding |
||
23 | */ |
||
24 | public $encoding = 'UTF-8'; |
||
25 | |||
26 | /** |
||
27 | * Response code to use |
||
28 | * |
||
29 | * @var int HTTP response code |
||
30 | */ |
||
31 | public $code = MIDCOM_ERROK; |
||
32 | |||
33 | /** |
||
34 | * The data to be transmitted |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | public $_data = []; |
||
39 | |||
40 | public function __get($name) |
||
41 | { |
||
42 | return $this->_data[$name] ?? null; |
||
43 | } |
||
44 | |||
45 | public function __set($name, $value) |
||
46 | { |
||
47 | $this->_data[$name] = $value; |
||
48 | } |
||
49 | |||
50 | public function set_data($data) |
||
53 | } |
||
54 | } |
||
55 |