LogEntry::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Kodus\Logging;
4
5
/**
6
 * Interal model representing a single, unprocessed (PSR-3) log-entry.
7
 *
8
 * @internal
9
 */
10
class LogEntry
11
{
12
    /**
13
     * @var mixed
14
     */
15
    public $level;
16
17
    /**
18
     * @var string
19
     */
20
    public $message;
21
22
    /**
23
     * @var array
24
     */
25
    public $context;
26
27
    /**
28
     * @param mixed  $level
29
     * @param string $message
30
     * @param array  $context
31
     */
32
    public function __construct($level, $message, array $context = [])
33
    {
34
        $this->level = $level;
35
        $this->message = $message;
36
        $this->context = $context;
37
    }
38
}
39