Completed
Branch feature/factory (c69aa7)
by Alex
03:00
created

NullLoggerBuilder::getMainClassName()   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 0
crap 1
1
<?php
2
/*
3
 * This file is part of the feed-io package.
4
 *
5
 * (c) Alexandre Debril <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace FeedIo\Factory\Builder;
12
13
use FeedIo\Factory\LoggerBuilderInterface;
14
use \Psr\Log\NullLogger;
15
16
/**
17
 * @package FeedIo
18
 */
19
class NullLoggerBuilder implements LoggerBuilderInterface
20
{
21
22
    /**
23
     * This method MUST return a valid PSR3 logger
24
     * @return \Psr\Log\NullLogger
25
     */
26 2
    public function getLogger()
27
    {
28 2
        return new \Psr\Log\NullLogger;
29
    }
30
 
31
    /**
32
     * This method MUST return the name of the main class
33
     * @return string
34
     */
35 1
    public function getMainClassName()
36
    {
37 1
        return '\Psr\Log\NullLogger';
38
    }
39
    
40
    /**
41
     * This method MUST return the name of the package name
42
     * @return string
43
     */
44 1
    public function getPackageName()
45
    {
46 1
        return 'psr/log';
47
    }
48
    
49
}
50