1 | <?php |
||
12 | class Logger |
||
13 | { |
||
14 | /** |
||
15 | * @var LoggerInterface |
||
16 | */ |
||
17 | private $logger; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $prefix; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $batchInsertThreshold = 4; |
||
28 | |||
29 | /** |
||
30 | * DI Constructor |
||
31 | * |
||
32 | * @param LoggerInterface $logger |
||
33 | * @param string $prefix |
||
34 | */ |
||
35 | public function __construct(LoggerInterface $logger, $prefix = 'MongoDB query', $batchThreshold = 4) |
||
41 | |||
42 | /** |
||
43 | * Logs a mongodb query |
||
44 | * |
||
45 | * @param array $query The query to log |
||
46 | */ |
||
47 | public function logQuery(array $query) |
||
70 | } |
||
71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.