Passed
Push — develop ( 5e2f93...9192d3 )
by Andrew
04:36 queued 02:05
created

FailedAuthException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
4
namespace ddlzz\AmoAPI\Exceptions;
5
6
7
/**
8
 * Class FailedAuthException
9
 * @package ddlzz\AmoAPI\Exceptions
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
}