Completed
Pull Request — master (#11)
by Oliver
02:16
created

NullLogger::emergency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
/*
4
 * This file is part of the MobileNotif package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace LinkValue\MobileNotif\Logger;
11
12
use Psr\Log\LoggerInterface;
13
14
/**
15
 * Logger implementation which does nothing.
16
 *
17
 * @author Oliver Thebault <[email protected]>
18
 */
19
class NullLogger implements LoggerInterface
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24 1
    public function emergency($message, array $context = array())
25
    {
26 1
        return;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32 1
    public function alert($message, array $context = array())
33
    {
34 1
        return;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40 1
    public function critical($message, array $context = array())
41
    {
42 1
        return;
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48 1
    public function error($message, array $context = array())
49
    {
50 1
        return;
51
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56 1
    public function warning($message, array $context = array())
57
    {
58 1
        return;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64 1
    public function notice($message, array $context = array())
65
    {
66 1
        return;
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72 1
    public function info($message, array $context = array())
73
    {
74 1
        return;
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80 1
    public function debug($message, array $context = array())
81
    {
82 1
        return;
83
    }
84
85
    /**
86
     * {@inheritdoc}
87
     */
88 1
    public function log($level, $message, array $context = array())
89
    {
90 1
        return;
91
    }
92
93
}
94