Completed
Push — master ( 14a345...a74b95 )
by
unknown
03:53
created

CheckHealth   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 39
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A constructResponseData() 0 6 1
A constructRequestData() 0 4 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 constructRequestData($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