DummyLogger   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 10
c 1
b 1
f 0
dl 0
loc 72
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A debug() 0 3 1
A error() 0 3 1
A warning() 0 3 1
A notice() 0 3 1
A emergency() 0 3 1
A alert() 0 3 1
A critical() 0 3 1
A log() 0 3 1
A info() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace One;
4
5
use Psr\Log\LoggerInterface;
6
7
/**
8
 * dummy logger
9
 * @method void emergency($message, array $context)
10
 * @method void alert($message, array $context)
11
 * @method void critical($message, array $context)
12
 * @method void error($message, array $context)
13
 * @method void warning($message, array $context)
14
 * @method void notice($message, array $context)
15
 * @method void info($message, array $context)
16
 * @method void debug($message, array $context)
17
 * @method void log($level, $message, array $context)
18
 */
19
class DummyLogger implements LoggerInterface
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function emergency($message, array $context = []): void
25
    {
26
        echo $message . "\n";
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function alert($message, array $context = []): void
33
    {
34
        echo $message . "\n";
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function critical($message, array $context = []): void
41
    {
42
        echo $message . "\n";
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function error($message, array $context = []): void
49
    {
50
        echo $message . "\n";
51
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56
    public function warning($message, array $context = []): void
57
    {
58
        echo $message . "\n";
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function notice($message, array $context = []): void
65
    {
66
        echo $message . "\n";
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    public function info($message, array $context = []): void
73
    {
74
        echo $message . "\n";
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function debug($message, array $context = []): void
81
    {
82
        echo $message . "\n";
83
    }
84
85
    /**
86
     * {@inheritdoc}
87
     */
88
    public function log($level, $message, array $context = []): void
89
    {
90
        echo $message . "\n";
91
    }
92
}
93