1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace ApiClients\Client\Github\Resource\Repository\Commit; |
4
|
|
|
|
5
|
|
|
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource; |
6
|
|
|
use ApiClients\Foundation\Resource\AbstractResource; |
7
|
|
|
use DateTimeInterface; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* @EmptyResource("Repository\Commit\EmptyCheck") |
11
|
|
|
*/ |
12
|
|
|
abstract class Check extends AbstractResource implements CheckInterface |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var int |
16
|
|
|
*/ |
17
|
|
|
protected $id; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var string |
21
|
|
|
*/ |
22
|
|
|
protected $head_sha; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
protected $node_id; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string |
31
|
|
|
*/ |
32
|
|
|
protected $external_id; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
protected $url; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
protected $html_url; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
protected $details_url; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
protected $status; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string |
56
|
|
|
*/ |
57
|
|
|
protected $conclusion; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var DateTimeInterface |
61
|
|
|
*/ |
62
|
|
|
protected $started_at; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var DateTimeInterface |
66
|
|
|
*/ |
67
|
|
|
protected $completed_at; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var array |
71
|
|
|
*/ |
72
|
|
|
protected $output; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var string |
76
|
|
|
*/ |
77
|
|
|
protected $name; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var array |
81
|
|
|
*/ |
82
|
|
|
protected $check_suite; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @var array |
86
|
|
|
*/ |
87
|
|
|
protected $app; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @var array |
91
|
|
|
*/ |
92
|
|
|
protected $pull_requests; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return int |
96
|
|
|
*/ |
97
|
|
|
public function id(): int |
98
|
|
|
{ |
99
|
|
|
return $this->id; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return string |
104
|
|
|
*/ |
105
|
|
|
public function headSha(): string |
106
|
|
|
{ |
107
|
|
|
return $this->head_sha; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @return string |
112
|
|
|
*/ |
113
|
|
|
public function nodeId(): string |
114
|
|
|
{ |
115
|
|
|
return $this->node_id; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return string |
120
|
|
|
*/ |
121
|
|
|
public function externalId(): string |
122
|
|
|
{ |
123
|
|
|
return $this->external_id; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @return string |
128
|
|
|
*/ |
129
|
|
|
public function url(): string |
130
|
|
|
{ |
131
|
|
|
return $this->url; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @return string |
136
|
|
|
*/ |
137
|
|
|
public function htmlUrl(): string |
138
|
|
|
{ |
139
|
|
|
return $this->html_url; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @return string |
144
|
|
|
*/ |
145
|
|
|
public function detailsUrl(): string |
146
|
|
|
{ |
147
|
|
|
return $this->details_url; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return string |
152
|
|
|
*/ |
153
|
|
|
public function status(): string |
154
|
|
|
{ |
155
|
|
|
return $this->status; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return string |
160
|
|
|
*/ |
161
|
|
|
public function conclusion(): string |
162
|
|
|
{ |
163
|
|
|
return $this->conclusion; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return DateTimeInterface |
168
|
|
|
*/ |
169
|
|
|
public function startedAt(): DateTimeInterface |
170
|
|
|
{ |
171
|
|
|
return $this->started_at; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @return DateTimeInterface |
176
|
|
|
*/ |
177
|
|
|
public function completedAt(): DateTimeInterface |
178
|
|
|
{ |
179
|
|
|
return $this->completed_at; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @return array |
184
|
|
|
*/ |
185
|
|
|
public function output(): array |
186
|
|
|
{ |
187
|
|
|
return $this->output; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @return string |
192
|
|
|
*/ |
193
|
|
|
public function name(): string |
194
|
|
|
{ |
195
|
|
|
return $this->name; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @return array |
200
|
|
|
*/ |
201
|
|
|
public function checkSuite(): array |
202
|
|
|
{ |
203
|
|
|
return $this->check_suite; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @return array |
208
|
|
|
*/ |
209
|
|
|
public function app(): array |
210
|
|
|
{ |
211
|
|
|
return $this->app; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* @return array |
216
|
|
|
*/ |
217
|
|
|
public function pullRequests(): array |
218
|
|
|
{ |
219
|
|
|
return $this->pull_requests; |
220
|
|
|
} |
221
|
|
|
} |
222
|
|
|
|