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

CmsEmail   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 9
c 1
b 0
f 0
dl 0
loc 37
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getEmail() 0 2 1
A setEmail() 0 2 1
A setUser() 0 2 1
A getId() 0 2 1
A getUser() 0 2 1
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
}