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

DDC3303Person   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
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 55
rs 10

4 Methods

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