LogEntry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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