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

ErrorCodeException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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
}