Total Complexity | 5 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Record |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $context; |
||
17 | |||
18 | /** |
||
19 | * @var \DateTime |
||
20 | */ |
||
21 | protected $datetime; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $level; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $message; |
||
32 | |||
33 | /** |
||
34 | * Record constructor. |
||
35 | * |
||
36 | * @param \DateTime $datetime |
||
37 | * @param string $message |
||
38 | * @param string $level |
||
39 | * @param array $context |
||
40 | */ |
||
41 | public function __construct( |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return \DateTime |
||
55 | */ |
||
56 | public function getDatetime() |
||
57 | { |
||
58 | return $this->datetime; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getMessage() |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getLevel() |
||
73 | { |
||
74 | return $this->level; |
||
75 | } |
||
76 | |||
77 | /** |
||
78 | * @return array |
||
79 | */ |
||
80 | public function getContext() |
||
83 | } |
||
84 | } |
||
85 |