1 | <?php |
||
13 | class MongoLogger implements DataCollectorLoggerInterface |
||
14 | { |
||
15 | /** @var \SplQueue|LogEvent[] */ |
||
16 | private $logs; |
||
17 | |||
18 | /** |
||
19 | * MongoLogger constructor. |
||
20 | */ |
||
21 | 2 | public function __construct() |
|
25 | |||
26 | /** |
||
27 | * @param LogEvent $event |
||
28 | */ |
||
29 | public function logQuery(LogEvent $event) |
||
33 | |||
34 | /** |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function hasLoggedEvents(): bool |
||
41 | |||
42 | /** |
||
43 | * @return LogEvent |
||
44 | */ |
||
45 | public function getLoggedEvent(): LogEvent |
||
53 | } |
||
54 |