AccessTokenNotProvidedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 23
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Yansongda\LaravelApi\Exceptions;
4
5
class AccessTokenNotProvidedException 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 = 1)
24
    {
25
        $this->raw = $raw;
26
27
        parent::__construct($message, intval($code));
28
    }
29
}
30