Logger   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFoo() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace SimpleDIC\Dummy;
4
5
class Logger
6
{
7
    /**
8
     * @var null
9
     */
10
    private $foo;
11
12
    /**
13
     * Logger constructor.
14
     *
15
     * @param null $foo
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $foo is correct as it would always require null to be passed?
Loading history...
16
     */
17
    public function __construct($foo = null)
18
    {
19
        $this->foo = $foo;
20
    }
21
22
    /**
23
     * @return null
24
     */
25
    public function getFoo()
26
    {
27
        return $this->foo;
28
    }
29
}
30