Logger::getFoo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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