FailedAuthException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace ddlzz\AmoAPI\Exception;
4
5
/**
6
 * Class FailedAuthException.
7
 *
8
 * @author ddlzz
9
 */
10
class FailedAuthException extends AmoException
11
{
12
    /**
13
     * ErrorCodeException constructor.
14
     *
15
     * @param string $message
16
     * @param string $response
17
     */
18 1
    public function __construct($message = '', $response = '')
19
    {
20 1
        parent::__construct($message);
21
22 1
        $this->message .= '. Server response: '.$response;
23 1
    }
24
}
25