Solution::getOwnerId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Xsolve\SalesforceClient\Model;
4
5
use Xsolve\SalesforceClient\Enum\AbstractSObjectType;
6
use Xsolve\SalesforceClient\Enum\SObjectType;
7
use JMS\Serializer\Annotation as JMS;
8
9
class Solution extends AbstractSObject
10
{
11
    /**
12
     * @var bool|null
13
     * @JMS\Type("boolean")
14
     */
15
    protected $isDeleted;
16
17
    /**
18
     * @var bool|null
19
     * @JMS\Type("boolean")
20
     */
21
    protected $isHtml;
22
23
    /**
24
     * @var bool|null
25
     * @JMS\Type("boolean")
26
     */
27
    protected $isOutOfDate;
28
29
    /**
30
     * @var bool|null
31
     * @JMS\Type("boolean")")
32
     * @JMS\Groups({"create", "update"})
33
     */
34
    protected $isPublished;
35
36
    /**
37
     * @var bool|null
38
     * @JMS\Type("boolean")")
39
     * @JMS\Groups({"create", "update"})
40
     */
41
    protected $isPublishedInPublicKb;
42
43
    /**
44
     * @var bool|null
45
     * @JMS\Type("boolean")
46
     */
47
    protected $isReviewed;
48
49
    /**
50
     * @var \DateTimeInterface|null
51
     * @JMS\Type("DateTime<'Y-m-d\TH:i:s.\0\0\0O'>")
52
     */
53
    protected $lastReferencedDate;
54
55
    /**
56
     * @var \DateTimeInterface|null
57
     * @JMS\Type("DateTime<'Y-m-d\TH:i:s.\0\0\0O'>")
58
     */
59
    protected $lastViewedDate;
60
61
    /**
62
     * @var string|null
63
     * @JMS\Type("string")
64
     * @JMS\Groups({"create", "update"})
65
     */
66
    protected $ownerId;
67
68
    /**
69
     * @var string|null
70
     * @JMS\Type("string")
71
     * @JMS\Groups({"create", "update"})
72
     */
73
    protected $solutionName;
74
75
    /**
76
     * @var string|null
77
     * @JMS\Type("string")
78
     * @JMS\Groups({"create", "update"})
79
     */
80
    protected $solutionNote;
81
82
    /**
83
     * @var string|null
84
     * @JMS\Type("string")
85
     */
86
    protected $solutionNumber;
87
88
    /**
89
     * @var string|null
90
     * @JMS\Type("string")
91
     * @JMS\Groups({"create", "update"})
92
     */
93
    protected $status;
94
95
    /**
96
     * @var int|null
97
     * @JMS\Type("int")
98
     */
99
    protected $timesUsed;
100
101
    /**
102
     * {@inheritdoc}
103
     */
104
    public static function getSObjectName(): AbstractSObjectType
105
    {
106
        return SObjectType::SOLUTION();
107
    }
108
109
    /**
110
     * @return bool|null
111
     */
112
    public function isDeleted()
113
    {
114
        return $this->isDeleted;
115
    }
116
117
    /**
118
     * @return bool|null
119
     */
120
    public function isHtml()
121
    {
122
        return $this->isHtml;
123
    }
124
125
    /**
126
     * @return bool|null
127
     */
128
    public function isOutOfDate()
129
    {
130
        return $this->isOutOfDate;
131
    }
132
133
    /**
134
     * @return bool|null
135
     */
136
    public function isPublished()
137
    {
138
        return $this->isPublished;
139
    }
140
141
    /**
142
     * @return bool|null
143
     */
144
    public function isPublishedInPublicKb()
145
    {
146
        return $this->isPublishedInPublicKb;
147
    }
148
149
    /**
150
     * @return bool|null
151
     */
152
    public function isReviewed()
153
    {
154
        return $this->isReviewed;
155
    }
156
157
    /**
158
     * @return \DateTimeInterface|null
159
     */
160
    public function getLastReferencedDate()
161
    {
162
        return $this->lastReferencedDate;
163
    }
164
165
    /**
166
     * @return \DateTimeInterface|null
167
     */
168
    public function getLastViewedDate()
169
    {
170
        return $this->lastViewedDate;
171
    }
172
173
    /**
174
     * @return string|null
175
     */
176
    public function getOwnerId()
177
    {
178
        return $this->ownerId;
179
    }
180
181
    /**
182
     * @return string|null
183
     */
184
    public function getSolutionName()
185
    {
186
        return $this->solutionName;
187
    }
188
189
    /**
190
     * @return string|null
191
     */
192
    public function getSolutionNote()
193
    {
194
        return $this->solutionNote;
195
    }
196
197
    /**
198
     * @return string|null
199
     */
200
    public function getSolutionNumber()
201
    {
202
        return $this->solutionNumber;
203
    }
204
205
    /**
206
     * @return string|null
207
     */
208
    public function getStatus()
209
    {
210
        return $this->status;
211
    }
212
213
    /**
214
     * @return int|null
215
     */
216
    public function getTimesUsed()
217
    {
218
        return $this->timesUsed;
219
    }
220
221
    public function setIsPublished(bool $isPublished): self
222
    {
223
        $this->isPublished = $isPublished;
224
225
        return $this;
226
    }
227
228
    public function setIsPublishedInPublicKb(bool $isPublishedInPublicKb): self
229
    {
230
        $this->isPublishedInPublicKb = $isPublishedInPublicKb;
231
232
        return $this;
233
    }
234
235
    public function setOwnerId(string $ownerId): self
236
    {
237
        $this->ownerId = $ownerId;
238
239
        return $this;
240
    }
241
242
    public function setSolutionName(string $solutionName): self
243
    {
244
        $this->solutionName = $solutionName;
245
246
        return $this;
247
    }
248
249
    public function setSolutionNote(string $solutionNote = null): self
250
    {
251
        $this->solutionNote = $solutionNote;
252
253
        return $this;
254
    }
255
256
    public function setStatus(string $status): self
257
    {
258
        $this->status = $status;
259
260
        return $this;
261
    }
262
}
263