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

DDC3303Person::getAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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