Middleware   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeClass() 0 3 1
1
<?php
2
// +----------------------------------------------------------------------
3
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
4
// +----------------------------------------------------------------------
5
// | Copyright (c) 2006~2021 http://thinkphp.cn All rights reserved.
6
// +----------------------------------------------------------------------
7
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
// +----------------------------------------------------------------------
9
// | Author: liu21st <[email protected]>
10
// +----------------------------------------------------------------------
11
declare (strict_types = 1);
12
13
namespace think\facade;
14
15
use think\Facade;
16
17
/**
18
 * @see \think\Middleware
19
 * @package think\facade
20
 * @mixin \think\Middleware
21
 * @method static void import(array $middlewares = [], string $type = 'global') 导入中间件
22
 * @method static void add(mixed $middleware, string $type = 'global') 注册中间件
23
 * @method static void route(mixed $middleware) 注册路由中间件
24
 * @method static void controller(mixed $middleware) 注册控制器中间件
25
 * @method static mixed unshift(mixed $middleware, string $type = 'global') 注册中间件到开始位置
26
 * @method static array all(string $type = 'global') 获取注册的中间件
27
 * @method static Pipeline pipeline(string $type = 'global') 调度管道
28
 * @method static mixed end(\think\Response $response) 结束调度
29
 * @method static \think\Response handleException(\think\Request $passable, \Throwable $e) 异常处理
30
 */
31
class Middleware extends Facade
32
{
33
    /**
34
     * 获取当前Facade对应类名(或者已经绑定的容器对象标识)
35
     * @access protected
36
     * @return string
37
     */
38
    protected static function getFacadeClass()
39
    {
40
        return 'middleware';
41
    }
42
}
43