Completed
Push — 6.0 ( bcbae5...1124c5 )
by liu
05:09 queued 11s
created

ClassNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 17
ccs 4
cts 6
cp 0.6667
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getClass() 0 3 1
1
<?php
2
// +----------------------------------------------------------------------
3
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4
// +----------------------------------------------------------------------
5
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
6
// +----------------------------------------------------------------------
7
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
// +----------------------------------------------------------------------
9
// | Author: yunwuxin <[email protected]>
10
// +----------------------------------------------------------------------
11
12
namespace think\exception;
13
14
use Psr\Container\NotFoundExceptionInterface;
15
16
class ClassNotFoundException extends \RuntimeException implements NotFoundExceptionInterface
17
{
18
    protected $class;
19 3
    public function __construct(string $message, string $class = '')
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
20
    {
21 3
        $this->message = $message;
22 3
        $this->class   = $class;
23 3
    }
24
25
    /**
26
     * 获取类名
27
     * @access public
28
     * @return string
29
     */
30
    public function getClass()
31
    {
32
        return $this->class;
33
    }
34
}
35