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

LogRecord::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
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