Test Failed
Push — master ( 156c37...627d8f )
by Zbigniew
03:20
created

CustomStatusModel::getColor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zibios\WrikePhpJmsserializer\Model\Common;
13
14
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
15
16
/**
17
 * Custom Status Model.
18
 */
19
class CustomStatusModel implements ResourceModelInterface
20
{
21
    /**
22
     * Custom status ID.
23
     *
24
     * Comment: Custom status ID
25
     *
26
     * @SA\Type("string")
27
     * @SA\SerializedName("id")
28
     *
29
     * @var string|null
30
     */
31
    protected $id;
32
33
    /**
34
     * Name (128 symbols max).
35
     *
36
     * @SA\Type("string")
37
     * @SA\SerializedName("name")
38
     *
39
     * @var string|null
40
     */
41
    protected $name;
42
43
    /**
44
     * Color name.
45
     * Custom status color, Enum.
46
     *
47
     * @see \Zibios\WrikePhpLibrary\Enum\ColorEnum
48
     *
49
     * Comment: Optional
50
     *
51
     * @SA\Type("string")
52
     * @SA\SerializedName("color")
53
     *
54
     * @var string|null
55
     */
56
    protected $color;
57
58
    /**
59
     * Defines default custom status (ignored in requests).
60
     *
61
     * @SA\Type("boolean")
62
     * @SA\SerializedName("standard")
63
     *
64
     * @var bool|null
65
     */
66
    protected $standard;
67
68
    /**
69
     * Custom status group.
70
     *
71
     * Task Status, Enum: Active, Completed, Deferred, Cancelled
72
     *
73
     * @SA\Type("string")
74
     * @SA\SerializedName("group")
75
     *
76
     * @var string|null
77
     */
78
    protected $group;
79
80
    /**
81
     * Custom status is hidden.
82
     *
83
     * @SA\Type("boolean")
84
     * @SA\SerializedName("hidden")
85
     *
86
     * @var bool|null
87
     */
88
    protected $hidden;
89
90
    /**
91
     * @return null|string
92
     */
93 1
    public function getId()
94
    {
95 1
        return $this->id;
96
    }
97
98
    /**
99
     * @param null|string $id
100
     *
101
     * @return $this
102
     */
103 1
    public function setId($id)
104
    {
105 1
        $this->id = $id;
106
107 1
        return $this;
108
    }
109
110
    /**
111
     * @return null|string
112
     */
113 1
    public function getName()
114
    {
115 1
        return $this->name;
116
    }
117
118
    /**
119
     * @param null|string $name
120
     *
121
     * @return $this
122
     */
123 1
    public function setName($name)
124
    {
125 1
        $this->name = $name;
126
127 1
        return $this;
128
    }
129
130
    /**
131
     * @return null|string
132
     */
133 1
    public function getColor()
134
    {
135 1
        return $this->color;
136
    }
137
138
    /**
139
     * @param null|string $color
140
     *
141
     * @return $this
142
     */
143 1
    public function setColor($color)
144
    {
145 1
        $this->color = $color;
146
147 1
        return $this;
148
    }
149
150
    /**
151
     * @return bool|null
152
     */
153 1
    public function getStandard()
154
    {
155 1
        return $this->standard;
156
    }
157
158
    /**
159
     * @param bool|null $standard
160
     *
161
     * @return $this
162
     */
163 1
    public function setStandard($standard)
164
    {
165 1
        $this->standard = $standard;
166
167 1
        return $this;
168
    }
169
170
    /**
171
     * @return null|string
172
     */
173 1
    public function getGroup()
174
    {
175 1
        return $this->group;
176
    }
177
178
    /**
179
     * @param null|string $group
180
     *
181
     * @return $this
182
     */
183 1
    public function setGroup($group)
184
    {
185 1
        $this->group = $group;
186
187 1
        return $this;
188
    }
189
190
    /**
191
     * @return bool|null
192
     */
193 1
    public function getHidden()
194
    {
195 1
        return $this->hidden;
196
    }
197
198
    /**
199
     * @param bool|null $hidden
200
     *
201
     * @return $this
202
     */
203 1
    public function setHidden($hidden)
204
    {
205 1
        $this->hidden = $hidden;
206
207 1
        return $this;
208
    }
209
}
210