Passed
Pull Request — 8.0 (#2929)
by
unknown
02:07
created

LogRecord   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
// +----------------------------------------------------------------------
3
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
4
// +----------------------------------------------------------------------
5
// | Copyright (c) 2006~2023 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
namespace think\event;
12
13
/**
14
 * LogRecord事件类
15
 */
16
class LogRecord
17
{
18
    /** @var string */
19
    public $type;
20
21
    /** @var string */
22
    public $message;
23
24 6
    public function __construct($type, $message)
25
    {
26 6
        $this->type    = $type;
27 6
        $this->message = $message;
28
    }
29
}
30