AccountAccountStatus::getLogonCount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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