Completed
Pull Request — master (#5032)
by Grégoire
03:41
created

Foo   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 7
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 45
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getBar() 0 4 1
A setBar() 0 4 1
A getBaz() 0 4 1
A getQuux() 0 4 1
A setBaz() 0 4 1
A setQuux() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Sonata\AdminBundle\Tests\Fixtures\Entity;
4
5
class Foo
6
{
7
    private $bar;
8
9
    private $baz;
10
11
    private $quux;
12
13
    public $qux;
14
15
    public function getBar()
16
    {
17
        return $this->bar;
18
    }
19
20
    public function setBar($bar)
21
    {
22
        $this->bar = $bar;
23
    }
24
25
    public function getBaz()
26
    {
27
        return $this->baz;
28
    }
29
30
    protected function getQuux()
31
    {
32
        return $this->quux;
33
    }
34
35
    public function setBaz($baz)
36
    {
37
        $this->baz = $baz;
38
    }
39
40
    public function setQuux($quux)
41
    {
42
        $this->quux = $quux;
43
    }
44
45
    public function __toString()
46
    {
47
        return (string) $this->bar;
48
    }
49
}
50