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

FailedAuthException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 5
ccs 3
cts 3
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 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
}