Request_Exception::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 5
crap 2
1
<?php
2
3
namespace OpenBuildings\PayPal;
4
5
/**
6
 * @author Haralan Dobrev <[email protected]>
7
 * @copyright 2013 OpenBuildings, Inc.
8
 * @license http://spdx.org/licenses/BSD-3-Clause
9
 */
10
class Request_Exception extends Exception {
11
12
	public $url;
13
14
	public $params = array();
15
16
	public $response;
17
18
	public function __construct($message, $url, $params, $variables = array(), $response = NULL)
19
	{
20
		$this->url = $url;
21
		$this->params = $params;
22
		$this->response = $response;
23
24
		parent::__construct($message, $variables);
25
	}
26
}
27