Passed
Push — master ( 17481c...d9f781 )
by Reyo
02:57
created

ProjectSubscription::getCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the timechimp bundle package.
7
 * (c) Connect Holland.
8
 */
9
10
namespace ConnectHolland\TimechimpBundle\Api\Model;
11
12
class ProjectSubscription
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
    /**
19
     * 1 = Week, 2 = Month, 3 = Quarter, 4 = Year.
20
     *
21
     * @var int
22
     */
23
    protected $frequency;
24
    /**
25
     * @var \DateTime
26
     */
27
    protected $startDate;
28
    /**
29
     * @var \DateTime
30
     */
31
    protected $endDate;
32
    /**
33
     * @var string
34
     */
35
    protected $description;
36
    /**
37
     * @var string
38
     */
39
    protected $code;
40
    /**
41
     * @var float
42
     */
43
    protected $amount;
44
    /**
45
     * @var float
46
     */
47
    protected $rate;
48
49
    public function getId(): int
50
    {
51
        return $this->id;
52
    }
53
54
    public function setId(int $id): self
55
    {
56
        $this->id = $id;
57
58
        return $this;
59
    }
60
61
    /**
62
     * 1 = Week, 2 = Month, 3 = Quarter, 4 = Year.
63
     */
64
    public function getFrequency(): int
65
    {
66
        return $this->frequency;
67
    }
68
69
    /**
70
     * 1 = Week, 2 = Month, 3 = Quarter, 4 = Year.
71
     */
72
    public function setFrequency(int $frequency): self
73
    {
74
        $this->frequency = $frequency;
75
76
        return $this;
77
    }
78
79
    public function getStartDate(): \DateTime
80
    {
81
        return $this->startDate;
82
    }
83
84
    public function setStartDate(\DateTime $startDate): self
85
    {
86
        $this->startDate = $startDate;
87
88
        return $this;
89
    }
90
91
    public function getEndDate(): \DateTime
92
    {
93
        return $this->endDate;
94
    }
95
96
    public function setEndDate(\DateTime $endDate): self
97
    {
98
        $this->endDate = $endDate;
99
100
        return $this;
101
    }
102
103
    public function getDescription(): string
104
    {
105
        return $this->description;
106
    }
107
108
    public function setDescription(string $description): self
109
    {
110
        $this->description = $description;
111
112
        return $this;
113
    }
114
115
    public function getCode(): string
116
    {
117
        return $this->code;
118
    }
119
120
    public function setCode(string $code): self
121
    {
122
        $this->code = $code;
123
124
        return $this;
125
    }
126
127
    public function getAmount(): float
128
    {
129
        return $this->amount;
130
    }
131
132
    public function setAmount(float $amount): self
133
    {
134
        $this->amount = $amount;
135
136
        return $this;
137
    }
138
139
    public function getRate(): float
140
    {
141
        return $this->rate;
142
    }
143
144
    public function setRate(float $rate): self
145
    {
146
        $this->rate = $rate;
147
148
        return $this;
149
    }
150
}
151