Completed
Push — master ( fc0ef9...fd9cb0 )
by Andrew
04:08
created

ErrorCodeException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
4
namespace ddlzz\AmoAPI\Exception;
5
6
7
/**
8
 * Class ErrorCodeException
9
 * @package ddlzz\AmoAPI\Exception
10
 * @author ddlzz
11
 */
12
class ErrorCodeException extends AmoException
13
{
14
    /**
15
     * ErrorCodeException constructor.
16
     * @param string $message
17
     * @param string $response
18
     * @param string $url
19
     */
20 1
    public function __construct($message = '', $response = '', $url = '')
21
    {
22 1
        parent::__construct($message);
23
24 1
        $this->message .= '. Server response: ' . $response;
25 1
        $this->message .= '. Url: ' . $url;
26
    }
27
}