Completed
Push — master ( 2e6749...8bcd18 )
by Sam
02:24
created

StatisticsResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Jalle19\StatusManager\Message\Response;
4
5
use Jalle19\StatusManager\Message\AbstractMessage;
6
use Jalle19\StatusManager\Message\Request\StatisticsRequest;
7
8
/**
9
 * Class StatisticsResponse
10
 * @package   Jalle19\StatusManager\Message\Response
11
 * @copyright Copyright &copy; Sam Stenvall 2016-
12
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
13
 */
14
abstract class StatisticsResponse extends AbstractMessage
15
{
16
17
	/**
18
	 * StatisticsResponse constructor.
19
	 *
20
	 * @param string            $type
21
	 * @param StatisticsRequest $request
22
	 * @param mixed             $response
23
	 */
24
	public function __construct($type, $request, $response)
25
	{
26
		$payload           = new \stdClass();
27
		$payload->request  = $request;
28
		$payload->response = $response;
29
30
		parent::__construct($type, $payload);
31
	}
32
33
}
34