SocialAuthHttpException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace MadWeb\SocialAuth\Exceptions;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Symfony\Component\HttpFoundation\Response;
7
use Illuminate\Http\Exceptions\HttpResponseException;
8
9
class SocialAuthHttpException extends HttpResponseException
10
{
11
    /**
12
     * @var \Illuminate\Database\Eloquent\Model
13
     */
14
    protected $social;
15
16
    /**
17
     * SocialAuthException constructor.
18
     * @param Response $response
19
     * @param \Illuminate\Database\Eloquent\Model $social
20
     */
21 12
    public function __construct(Response $response, Model $social)
22
    {
23 12
        parent::__construct($response);
24
25 12
        $this->social = $social;
26 12
    }
27
}
28