SocialAuthHttpException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 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