Passed
Push — phpstan-tests ( 6a2b78...974220 )
by Michael
61:35 queued 23s
created

NullLogger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A startQuery() 0 2 1
A stopQuery() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Logging;
6
7
/**
8
 * A SQL logger that does nothing.
9
 *
10
 * @codeCoverageIgnore
11
 */
12
final class NullLogger implements SQLLogger
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function startQuery(string $sql, ?array $params = [], ?array $types = []) : void
18
    {
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function stopQuery() : void
25
    {
26
    }
27
}
28