Completed
Pull Request — master (#6)
by Jan
03:34
created

RequestException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getResponse() 0 4 1
1
<?php
2
3
namespace SlevomatCsobGateway\Api;
4
5
abstract class RequestException extends \RuntimeException
6
{
7
8
	/**
9
	 * @var Response
10
	 */
11
	private $response;
12
13
	/**
14
	 * @param string $message
15
	 * @param Response $response
16
	 */
17
	public function __construct($message, Response $response)
18
	{
19
		parent::__construct($message);
20
21
		$this->response = $response;
22
	}
23
24
	/**
25
	 * @return Response
26
	 */
27
	public function getResponse()
28
	{
29
		return $this->response;
30
	}
31
32
}
33