1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace ApiClients\Client\AppVeyor\Resource; |
4
|
|
|
|
5
|
|
|
use ApiClients\Foundation\Hydrator\Annotation\Collection; |
6
|
|
|
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource; |
7
|
|
|
use ApiClients\Foundation\Resource\AbstractResource; |
8
|
|
|
use DateTimeInterface; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* @Collection( |
12
|
|
|
* builds="Build" |
13
|
|
|
* ) |
14
|
|
|
* @EmptyResource("EmptyProject") |
15
|
|
|
*/ |
16
|
|
|
abstract class Project extends AbstractResource implements ProjectInterface |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
protected $projectId; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int |
25
|
|
|
*/ |
26
|
|
|
protected $accountId; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
protected $accountName; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var array |
35
|
|
|
*/ |
36
|
|
|
protected $builds; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
protected $name; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
protected $slug; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
protected $repositoryType; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
*/ |
56
|
|
|
protected $repositoryScm; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
*/ |
61
|
|
|
protected $repositoryName; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var string |
65
|
|
|
*/ |
66
|
|
|
protected $repositoryBranch; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var bool |
70
|
|
|
*/ |
71
|
|
|
protected $isPrivate; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var bool |
75
|
|
|
*/ |
76
|
|
|
protected $skipBranchesWithoutAppveyorYml; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var bool |
80
|
|
|
*/ |
81
|
|
|
protected $enableSecureVariablesInPullRequests; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var bool |
85
|
|
|
*/ |
86
|
|
|
protected $enableDeploymentInPullRequests; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @var bool |
90
|
|
|
*/ |
91
|
|
|
protected $rollingBuilds; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var bool |
95
|
|
|
*/ |
96
|
|
|
protected $alwaysBuildClosedPullRequests; |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @var array |
100
|
|
|
*/ |
101
|
|
|
protected $nuGetFeed; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @var array |
105
|
|
|
*/ |
106
|
|
|
protected $securityDescriptor; |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @var DateTimeInterface |
110
|
|
|
*/ |
111
|
|
|
protected $created; |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @var DateTimeInterface |
115
|
|
|
*/ |
116
|
|
|
protected $updated; |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return int |
120
|
|
|
*/ |
121
|
4 |
|
public function projectId(): int |
122
|
|
|
{ |
123
|
4 |
|
return $this->projectId; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @return int |
128
|
|
|
*/ |
129
|
4 |
|
public function accountId(): int |
130
|
|
|
{ |
131
|
4 |
|
return $this->accountId; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @return string |
136
|
|
|
*/ |
137
|
4 |
|
public function accountName(): string |
138
|
|
|
{ |
139
|
4 |
|
return $this->accountName; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @return array |
144
|
|
|
*/ |
145
|
|
|
public function builds(): array |
146
|
|
|
{ |
147
|
|
|
return $this->builds; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return string |
152
|
|
|
*/ |
153
|
4 |
|
public function name(): string |
154
|
|
|
{ |
155
|
4 |
|
return $this->name; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return string |
160
|
|
|
*/ |
161
|
4 |
|
public function slug(): string |
162
|
|
|
{ |
163
|
4 |
|
return $this->slug; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return string |
168
|
|
|
*/ |
169
|
4 |
|
public function repositoryType(): string |
170
|
|
|
{ |
171
|
4 |
|
return $this->repositoryType; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @return string |
176
|
|
|
*/ |
177
|
4 |
|
public function repositoryScm(): string |
178
|
|
|
{ |
179
|
4 |
|
return $this->repositoryScm; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @return string |
184
|
|
|
*/ |
185
|
4 |
|
public function repositoryName(): string |
186
|
|
|
{ |
187
|
4 |
|
return $this->repositoryName; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @return string |
192
|
|
|
*/ |
193
|
4 |
|
public function repositoryBranch(): string |
194
|
|
|
{ |
195
|
4 |
|
return $this->repositoryBranch; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @return bool |
200
|
|
|
*/ |
201
|
4 |
|
public function isPrivate(): bool |
202
|
|
|
{ |
203
|
4 |
|
return $this->isPrivate; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @return bool |
208
|
|
|
*/ |
209
|
4 |
|
public function skipBranchesWithoutAppveyorYml(): bool |
210
|
|
|
{ |
211
|
4 |
|
return $this->skipBranchesWithoutAppveyorYml; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* @return bool |
216
|
|
|
*/ |
217
|
4 |
|
public function enableSecureVariablesInPullRequests(): bool |
218
|
|
|
{ |
219
|
4 |
|
return $this->enableSecureVariablesInPullRequests; |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
/** |
223
|
|
|
* @return bool |
224
|
|
|
*/ |
225
|
4 |
|
public function enableDeploymentInPullRequests(): bool |
226
|
|
|
{ |
227
|
4 |
|
return $this->enableDeploymentInPullRequests; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @return bool |
232
|
|
|
*/ |
233
|
4 |
|
public function rollingBuilds(): bool |
234
|
|
|
{ |
235
|
4 |
|
return $this->rollingBuilds; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @return bool |
240
|
|
|
*/ |
241
|
4 |
|
public function alwaysBuildClosedPullRequests(): bool |
242
|
|
|
{ |
243
|
4 |
|
return $this->alwaysBuildClosedPullRequests; |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
/** |
247
|
|
|
* @return array |
248
|
|
|
*/ |
249
|
|
|
public function nuGetFeed(): array |
250
|
|
|
{ |
251
|
|
|
return $this->nuGetFeed; |
252
|
|
|
} |
253
|
|
|
|
254
|
|
|
/** |
255
|
|
|
* @return array |
256
|
|
|
*/ |
257
|
|
|
public function securityDescriptor(): array |
258
|
|
|
{ |
259
|
|
|
return $this->securityDescriptor; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* @return DateTimeInterface |
264
|
|
|
*/ |
265
|
|
|
public function created(): DateTimeInterface |
266
|
|
|
{ |
267
|
|
|
return $this->created; |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* @return DateTimeInterface |
272
|
|
|
*/ |
273
|
|
|
public function updated(): DateTimeInterface |
274
|
|
|
{ |
275
|
|
|
return $this->updated; |
276
|
|
|
} |
277
|
|
|
} |
278
|
|
|
|