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