1 | <?php |
||
43 | class LogEvent extends Event implements LogEventInterface |
||
44 | { |
||
45 | /** |
||
46 | * @param int $level |
||
47 | * @param string $message |
||
48 | * @param array $context |
||
49 | */ |
||
50 | 4 | public function __construct(int $level = Logger::DEBUG, string $message = '', array $context = []) |
|
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getContext(): array |
||
63 | /** |
||
64 | * @return int |
||
65 | */ |
||
66 | public function getLevel(): int |
||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getMessage(): string |
||
77 | /** |
||
78 | * @param array $value |
||
79 | * |
||
80 | * @return self Fluent interface. |
||
81 | */ |
||
82 | 4 | public function setContext(array $value): self |
|
87 | /** |
||
88 | * @param int $value |
||
89 | * |
||
90 | * @return self Fluent interface. |
||
91 | */ |
||
92 | 4 | public function setLevel(int $value): self |
|
97 | /** |
||
98 | * @param string $value |
||
99 | * |
||
100 | * @return self Fluent interface. |
||
101 | */ |
||
102 | 4 | public function setMessage(string $value): self |
|
107 | /** |
||
108 | * @var array $context |
||
109 | */ |
||
110 | protected $context; |
||
111 | /** |
||
112 | * @var int $level |
||
113 | */ |
||
114 | protected $level; |
||
115 | /** |
||
116 | * @var string $message |
||
117 | */ |
||
118 | protected $message; |
||
119 | } |
||
120 |