CharCorporationRoleAtBase   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 94
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 94
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
A getRoleId() 0 4 1
A getRoleName() 0 4 1
A getCharacter() 0 4 1
A setRoleId() 0 6 1
A setRoleName() 0 6 1
1
<?php
2
namespace Tarioch\EveapiFetcherBundle\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
6
/**
7
 * @ORM\Entity
8
 * @ORM\Table(name="charCorporationRoleAtBase")
9
 */
10
class CharCorporationRoleAtBase
11
{
12
    /**
13
     * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="ID", type="bigint", options={"unsigned"=true})
14
     */
15
    private $id;
16
17
    /**
18
     * @ORM\Column(name="roleID", type="bigint", options={"unsigned"=true})
19
     */
20
    private $roleId;
21
22
    /**
23
     * @ORM\Column(name="roleName", type="string")
24
     */
25
    private $roleName;
26
27
    /**
28
     * @ORM\ManyToOne(targetEntity="CharCharacterSheet", inversedBy="corporationRolesAtBase")
29
     * @ORM\JoinColumn(name="ownerID", referencedColumnName="characterID", nullable=false, onDelete="cascade")
30
     */
31
    private $character;
32
33
    public function __construct(CharCharacterSheet $character)
34
    {
35
        $this->character = $character;
36
    }
37
38
    /**
39
     * Get id
40
     *
41
     * @return integer
42
     */
43
    public function getId()
44
    {
45
        return $this->id;
46
    }
47
48
    /**
49
     * Set roleId
50
     *
51
     * @param integer $roleId
52
     * @return CharCorporationRoleAtBase
53
     */
54
    public function setRoleId($roleId)
55
    {
56
        $this->roleId = $roleId;
57
58
        return $this;
59
    }
60
61
    /**
62
     * Get roleId
63
     *
64
     * @return integer
65
     */
66
    public function getRoleId()
67
    {
68
        return $this->roleId;
69
    }
70
71
    /**
72
     * Set roleName
73
     *
74
     * @param string $roleName
75
     * @return CharCorporationRoleAtBase
76
     */
77
    public function setRoleName($roleName)
78
    {
79
        $this->roleName = $roleName;
80
81
        return $this;
82
    }
83
84
    /**
85
     * Get roleName
86
     *
87
     * @return string
88
     */
89
    public function getRoleName()
90
    {
91
        return $this->roleName;
92
    }
93
94
    /**
95
     * Get character
96
     *
97
     * @return \Tarioch\EveapiFetcherBundle\Entity\CharCharacterSheet
98
     */
99
    public function getCharacter()
100
    {
101
        return $this->character;
102
    }
103
}
104