AccountAccountStatus   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 100
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 11
c 2
b 2
f 0
lcom 0
cbo 0
dl 0
loc 100
rs 10

11 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
A getKey() 0 4 1
A getCreateDate() 0 4 1
A setCreateDate() 0 4 1
A getLogonCount() 0 4 1
A setLogonCount() 0 4 1
A getLogonMinutes() 0 4 1
A setLogonMinutes() 0 4 1
A getPaidUntil() 0 4 1
A setPaidUntil() 0 4 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="accountAccountStatus")
9
 */
10
class AccountAccountStatus
11
{
12
    /**
13
     * @var integer
14
     *
15
     * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="ID", type="bigint", options={"unsigned"=true})
16
     */
17
    private $id;
18
19
    /**
20
     * @var \DateTime
21
     *
22
     * @ORM\Column(name="createDate", type="datetime")
23
     */
24
    private $createDate;
25
26
    /**
27
     * @var integer
28
     *
29
     * @ORM\Column(name="logonCount", type="bigint", options={"unsigned"=true})
30
     */
31
    private $logonCount;
32
33
    /**
34
     * @var integer
35
     *
36
     * @ORM\Column(name="logonMinutes", type="bigint", options={"unsigned"=true})
37
     */
38
    private $logonMinutes;
39
40
    /**
41
     * @var \DateTime
42
     *
43
     * @ORM\Column(name="paidUntil", type="datetime")
44
     */
45
    private $paidUntil;
46
47
    /**
48
     * @var ApiKey
49
     *
50
     * @ORM\OneToOne(targetEntity="ApiKey", fetch="EAGER")
51
     * @ORM\JoinColumn(name="keyID", referencedColumnName="keyID", nullable=false, onDelete="cascade")
52
     */
53
    private $key;
54
55
    public function __construct(ApiKey $key)
56
    {
57
        $this->key = $key;
58
    }
59
60
    public function getId()
61
    {
62
        return $this->id;
63
    }
64
65
    public function getKey()
66
    {
67
        return $this->key;
68
    }
69
70
    public function getCreateDate()
71
    {
72
        return $this->createDate;
73
    }
74
75
    public function setCreateDate($createDate)
76
    {
77
        $this->createDate = $createDate;
78
    }
79
80
    public function getLogonCount()
81
    {
82
        return $this->logonCount;
83
    }
84
85
    public function setLogonCount($logonCount)
86
    {
87
        $this->logonCount = $logonCount;
88
    }
89
90
    public function getLogonMinutes()
91
    {
92
        return $this->logonMinutes;
93
    }
94
95
    public function setLogonMinutes($logonMinutes)
96
    {
97
        $this->logonMinutes = $logonMinutes;
98
    }
99
100
    public function getPaidUntil()
101
    {
102
        return $this->paidUntil;
103
    }
104
105
    public function setPaidUntil($paidUntil)
106
    {
107
        $this->paidUntil = $paidUntil;
108
    }
109
}
110