InvalidAccessTokenException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 9.4285
1
<?php
2
3
namespace Yansongda\LaravelApi\Exceptions;
4
5
class InvalidAccessTokenException extends Exception
6
{
7
    /**
8
     * Raw data.
9
     *
10
     * @var string|array
11
     */
12
    public $raw;
13
14
    /**
15
     * Bootstrap.
16
     *
17
     * @author yansongda <[email protected]>
18
     *
19
     * @param string       $message
20
     * @param string|array $raw
21
     * @param string|int   $code
22
     */
23
    public function __construct($message, $raw = '', $code = 2)
24
    {
25
        $this->raw = $raw;
26
27
        parent::__construct($message, intval($code));
28
    }
29
}
30