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

FailedAuthException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
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
4
namespace ddlzz\AmoAPI\Exception;
5
6
7
/**
8
 * Class FailedAuthException
9
 * @package ddlzz\AmoAPI\Exception
10
 * @author ddlzz
11
 */
12
class FailedAuthException extends AmoException
13
{
14
    /**
15
     * ErrorCodeException constructor.
16
     * @param string $message
17
     * @param string $response
18
     */
19 1
    public function __construct($message = '', $response = '')
20
    {
21 1
        parent::__construct($message);
22
23 1
        $this->message .= '. Server response: ' . $response;
24
    }
25
}