Completed
Push — master ( 797ebd...09e699 )
by Josef
02:57
created

CheckHealth::constructResponseData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace HelePartnerSyncApi\Method;
4
5
class CheckHealth extends Method
6
{
7
8
	public function __construct()
9
	{
10
		parent::__construct(function ($data) {
11
			return $data;
12
		});
13
	}
14
15
	/**
16
	 * @return string
17
	 */
18
	public function getName()
19
	{
20
		return 'checkHealth';
21
	}
22
23
	/**
24
	 * @param array $data
25
	 * @return array
26
	 */
27
	protected function parseRequestData($data)
28
	{
29
		return array($data);
30
	}
31
32
	/**
33
	 * @param mixed $data
34
	 * @return array
35
	 */
36
	protected function constructResponseData($data)
37
	{
38
		return array(
39
			'requestData' => $data,
40
		);
41
	}
42
43
}
44