Completed
Pull Request — master (#6)
by Josef
02:28
created

AbstractRequestsException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace SlevomatCsobGateway\Api;
4
5
abstract class AbstractRequestsException extends \RuntimeException implements RequestException
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