Completed
Push — master ( 868034...401fc2 )
by Дмитрий
03:17
created

InvalidResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
/**
3
 * SocialConnect project
4
 * @author: Patsura Dmitry https://github.com/ovr <[email protected]>
5
 */
6
7
namespace SocialConnect\Provider\Exception;
8
9
class InvalidResponse extends \SocialConnect\Common\Exception
10
{
11
    /**
12
     * @var mixed
13
     */
14
    protected $response;
15
16
    /**
17
     * @param string $message
18
     * @param null $response
19
     */
20
    public function __construct($message = 'API bad response', $response = null)
21
    {
22
        parent::__construct($message);
23
24
        $this->response = $response;
25
    }
26
}
27