CustomStatusModel::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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