Address   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 91
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setName() 0 4 1
A getName() 0 4 1
A setStreet() 0 4 1
A getStreet() 0 4 1
A setZip() 0 4 1
A getZip() 0 4 1
A setCity() 0 4 1
A getCity() 0 4 1
1
<?php
2
namespace TestEntities;
3
4
use Doctrine\ORM\Mapping AS ORM;
5
6
/** @ORM\Entity */
7
class Address
8
{
9
10
    /**
11
     * @ORM\Id
12
     * @ORM\Column(type="integer")
13
     * @ORM\GeneratedValue
14
     */
15
    private $id;
16
17
    /** @ORM\Column(type="string") */
18
    private $name;
19
20
    /** @ORM\Column(type="string") */
21
    private $street;
22
23
    /** @ORM\Column(type="string") */
24
    private $zip;
25
26
    /** @ORM\Column(type="string") */
27
    private $city;
28
29
    public function __construct()
30
    {
31
    }
32
33
    /**
34
     * @param mixed $name
35
     */
36
    public function setName($name)
37
    {
38
        $this->name = $name;
39
    }
40
41
    /**
42
     * @return mixed
43
     */
44
    public function getName()
45
    {
46
        return $this->name;
47
    }
48
49
    /**
50
     * @param mixed $street
51
     */
52
    public function setStreet($street)
53
    {
54
        $this->street = $street;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getStreet()
61
    {
62
        return $this->street;
63
    }
64
65
    /**
66
     * @param mixed $zip
67
     */
68
    public function setZip($zip)
69
    {
70
        $this->zip = $zip;
71
    }
72
73
    /**
74
     * @return mixed
75
     */
76
    public function getZip()
77
    {
78
        return $this->zip;
79
    }
80
81
    /**
82
     * @param mixed $city
83
     */
84
    public function setCity($city)
85
    {
86
        $this->city = $city;
87
    }
88
89
    /**
90
     * @return mixed
91
     */
92
    public function getCity()
93
    {
94
        return $this->city;
95
    }
96
97
}
98