Failed Conditions
Pull Request — 2.6 (#7890)
by
unknown
10:05 queued 03:38
created

CmsEmail::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Tests\Models\CMSCustomId;
4
5
/**
6
 * CmsEmail
7
 *
8
 * @Entity
9
 * @Table(name="cms_emails_customid")
10
 */
11
class CmsEmail
12
{
13
    /**
14
     * @Id
15
     * @Column(type="CustomIdObject")
16
     * @GeneratedValue(strategy="NONE")
17
     */
18
    public $id;
19
20
    /**
21
     * @Column(length=250)
22
     */
23
    public $email;
24
25
    /**
26
     * @OneToOne(targetEntity="CmsUser", mappedBy="email")
27
     */
28
    public $user;
29
30
    public function getId() {
31
        return $this->id;
32
    }
33
34
    public function getEmail() {
35
        return $this->email;
36
    }
37
38
    public function setEmail($email) {
39
        $this->email = $email;
40
    }
41
42
    public function getUser() {
43
        return $this->user;
44
    }
45
46
    public function setUser(CmsUser $user) {
47
        $this->user = $user;
48
    }
49
}