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

Task::setCommon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 4
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 Task
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
    /**
19
     * @var bool
20
     */
21
    protected $active;
22
    /**
23
     * Task name is required.
24
     *
25
     * @var string
26
     */
27
    protected $name;
28
    /**
29
     * @var string
30
     */
31
    protected $code;
32
    /**
33
     * @var float
34
     */
35
    protected $hourlyRate;
36
    /**
37
     * @var bool
38
     */
39
    protected $billable;
40
    /**
41
     * @var bool
42
     */
43
    protected $common;
44
    /**
45
     * @var bool
46
     */
47
    protected $unspecified;
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
    public function getActive(): bool
62
    {
63
        return $this->active;
64
    }
65
66
    public function setActive(bool $active): self
67
    {
68
        $this->active = $active;
69
70
        return $this;
71
    }
72
73
    /**
74
     * Task name is required.
75
     */
76
    public function getName(): string
77
    {
78
        return $this->name;
79
    }
80
81
    /**
82
     * Task name is required.
83
     */
84
    public function setName(string $name): self
85
    {
86
        $this->name = $name;
87
88
        return $this;
89
    }
90
91
    public function getCode(): string
92
    {
93
        return $this->code;
94
    }
95
96
    public function setCode(string $code): self
97
    {
98
        $this->code = $code;
99
100
        return $this;
101
    }
102
103
    public function getHourlyRate(): float
104
    {
105
        return $this->hourlyRate;
106
    }
107
108
    public function setHourlyRate(float $hourlyRate): self
109
    {
110
        $this->hourlyRate = $hourlyRate;
111
112
        return $this;
113
    }
114
115
    public function getBillable(): bool
116
    {
117
        return $this->billable;
118
    }
119
120
    public function setBillable(bool $billable): self
121
    {
122
        $this->billable = $billable;
123
124
        return $this;
125
    }
126
127
    public function getCommon(): bool
128
    {
129
        return $this->common;
130
    }
131
132
    public function setCommon(bool $common): self
133
    {
134
        $this->common = $common;
135
136
        return $this;
137
    }
138
139
    public function getUnspecified(): bool
140
    {
141
        return $this->unspecified;
142
    }
143
144
    public function setUnspecified(bool $unspecified): self
145
    {
146
        $this->unspecified = $unspecified;
147
148
        return $this;
149
    }
150
}
151