Passed
Push — 6.0 ( db8fe2...839503 )
by yun
13:58
created

LogRecord   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 12
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~2021 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
    public function __construct($type, $message)
25
    {
26
        $this->type    = $type;
27
        $this->message = $message;
28
    }
29
}
30