Completed
Pull Request — master (#5867)
by Luís
20:43 queued 06:00
created

DDC3303Address   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 54
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getStreet() 0 4 1
A getNumber() 0 4 1
A getCity() 0 4 1
1
<?php
2
namespace Doctrine\Tests\Models\DDC3303;
3
4
/**
5
 * @Embeddable
6
 */
7
class DDC3303Address
8
{
9
    /**
10
     * @Column(type="string")
11
     *
12
     * @var string
13
     */
14
    private $street;
15
16
    /**
17
     * @Column(type="integer")
18
     *
19
     * @var int
20
     */
21
    private $number;
22
23
    /**
24
     * @Column(type="string")
25
     *
26
     * @var string
27
     */
28
    private $city;
29
30
    public function __construct($street, $number, $city)
31
    {
32
        $this->street = $street;
33
        $this->number = $number;
34
        $this->city = $city;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getStreet()
41
    {
42
        return $this->street;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getNumber()
49
    {
50
        return $this->number;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getCity()
57
    {
58
        return $this->city;
59
    }
60
}
61