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

FooBar   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 53
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getFoo() 0 4 1
A setFoo() 0 4 1
A getBar() 0 4 1
A setBar() 0 4 1
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