Completed
Push — master ( 578ac5...e6e028 )
by Дмитрий
03:35
created

InvalidResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * SocialConnect project
4
 * @author: Patsura Dmitry https://github.com/ovr <[email protected]>
5
 */
6
7
namespace SocialConnect\Auth\Exception;
8
9
class InvalidResponse extends \SocialConnect\Common\Exception
10
{
11
    /**
12
     * @var mixed
13
     */
14
    protected $response;
15
16
    public function __construct($message = 'API bad response', $response)
0 ignored issues
show
Coding Style introduced by
Parameters which have default values should be placed at the end.

If you place a parameter with a default value before a parameter with a default value, the default value of the first parameter will never be used as it will always need to be passed anyway:

// $a must always be passed; it's default value is never used.
function someFunction($a = 5, $b) { }
Loading history...
17
    {
18
        parent::__construct($message);
19
20
        $this->response = $response;
21
    }
22
}
23