Completed
Pull Request — master (#1)
by Timothy
08:51
created

FooBar::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace AbacaphiliacTest;
4
5
class FooBar
6
{
7
    /** @var mixed|null */
8
    private $foo;
9
    
10
    /** @var mixed|null */
11
    private $bar;
12
    
13
    /**
14
     * FooBar constructor.
15
     * @param mixed|null $foo
16
     * @param mixed|null $bar
17
     */
18
    public function __construct($foo = null, $bar = null)
19
    {
20
        $this->foo = $foo;
21
        $this->bar = $bar;
22
    }
23
    
24
    /**
25
     * @return mixed|null
26
     */
27
    public function getFoo()
28
    {
29
        return $this->foo;
30
    }
31
    
32
    /**
33
     * @param mixed|null $foo
34
     * @return void
35
     */
36
    public function setFoo($foo)
37
    {
38
        $this->foo = $foo;
39
    }
40
    
41
    /**
42
     * @return mixed|null
43
     */
44
    public function getBar()
45
    {
46
        return $this->bar;
47
    }
48
    
49
    /**
50
     * @param mixed|null $bar
51
     * @return void
52
     */
53
    public function setBar($bar)
54
    {
55
        $this->bar = $bar;
56
    }
57
}
58