1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Jns\Bundle\XhprofBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
class XhprofDetail |
8
|
|
|
{ |
9
|
|
|
protected $id; |
10
|
|
|
|
11
|
|
|
protected $url; |
12
|
|
|
|
13
|
|
|
protected $canonicalUrl; |
14
|
|
|
|
15
|
|
|
protected $serverName; |
16
|
|
|
|
17
|
|
|
protected $type; |
18
|
|
|
|
19
|
|
|
protected $perfData; |
20
|
|
|
|
21
|
|
|
protected $cookie; |
22
|
|
|
|
23
|
|
|
protected $post; |
24
|
|
|
|
25
|
|
|
protected $get; |
26
|
|
|
|
27
|
|
|
protected $pmu; |
28
|
|
|
|
29
|
|
|
protected $wt; |
30
|
|
|
|
31
|
|
|
protected $cpu; |
32
|
|
|
|
33
|
|
|
protected $serverId; |
34
|
|
|
|
35
|
|
|
protected $aggregateCallsInclude; |
36
|
|
|
|
37
|
|
|
protected $timestamp; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Get id. |
41
|
|
|
* |
42
|
|
|
* @return id. |
|
|
|
|
43
|
|
|
*/ |
44
|
|
|
public function getId() |
45
|
|
|
{ |
46
|
|
|
return $this->id; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Set id. |
51
|
|
|
* |
52
|
|
|
* @param id the value to set. |
53
|
|
|
*/ |
54
|
|
|
public function setId($id) |
55
|
|
|
{ |
56
|
|
|
$this->id = $id; |
57
|
|
|
return $this; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Get url. |
62
|
|
|
* |
63
|
|
|
* @return url. |
|
|
|
|
64
|
|
|
*/ |
65
|
|
|
public function getUrl() |
66
|
|
|
{ |
67
|
|
|
return $this->url; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* Set url. |
72
|
|
|
* |
73
|
|
|
* @param url the value to set. |
74
|
|
|
*/ |
75
|
|
|
public function setUrl($url) |
76
|
|
|
{ |
77
|
|
|
$this->url = $url; |
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Get canonicalUrl. |
83
|
|
|
* |
84
|
|
|
* @return canonicalUrl. |
|
|
|
|
85
|
|
|
*/ |
86
|
|
|
public function getCanonicalUrl() |
87
|
|
|
{ |
88
|
|
|
return $this->canonicalUrl; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* Set canonicalUrl. |
93
|
|
|
* |
94
|
|
|
* @param canonicalUrl the value to set. |
95
|
|
|
*/ |
96
|
|
|
public function setCanonicalUrl($canonicalUrl) |
97
|
|
|
{ |
98
|
|
|
$this->canonicalUrl = $canonicalUrl; |
99
|
|
|
return $this; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* Get serverName. |
104
|
|
|
* |
105
|
|
|
* @return serverName. |
|
|
|
|
106
|
|
|
*/ |
107
|
|
|
public function getServerName() |
108
|
|
|
{ |
109
|
|
|
return $this->serverName; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* Set serverName. |
114
|
|
|
* |
115
|
|
|
* @param serverName the value to set. |
116
|
|
|
*/ |
117
|
|
|
public function setServerName($serverName) |
118
|
|
|
{ |
119
|
|
|
$this->serverName = $serverName; |
120
|
|
|
return $this; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* Get perfData. |
125
|
|
|
* |
126
|
|
|
* @return perfData. |
|
|
|
|
127
|
|
|
*/ |
128
|
|
|
public function getPerfData() |
129
|
|
|
{ |
130
|
|
|
return $this->perfData; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* Set perfData. |
135
|
|
|
* |
136
|
|
|
* @param perfData the value to set. |
137
|
|
|
*/ |
138
|
|
|
public function setPerfData($perfData) |
139
|
|
|
{ |
140
|
|
|
$this->perfData = $perfData; |
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* Get cookie. |
146
|
|
|
* |
147
|
|
|
* @return cookie. |
|
|
|
|
148
|
|
|
*/ |
149
|
|
|
public function getCookie() |
150
|
|
|
{ |
151
|
|
|
return $this->cookie; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* Set cookie. |
156
|
|
|
* |
157
|
|
|
* @param cookie the value to set. |
158
|
|
|
*/ |
159
|
|
|
public function setCookie($cookie) |
160
|
|
|
{ |
161
|
|
|
$this->cookie = $cookie; |
162
|
|
|
return $this; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* Get post. |
167
|
|
|
* |
168
|
|
|
* @return post. |
|
|
|
|
169
|
|
|
*/ |
170
|
|
|
public function getPost() |
171
|
|
|
{ |
172
|
|
|
return $this->post; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* Set post. |
177
|
|
|
* |
178
|
|
|
* @param post the value to set. |
179
|
|
|
*/ |
180
|
|
|
public function setPost($post) |
181
|
|
|
{ |
182
|
|
|
$this->post = $post; |
183
|
|
|
return $this; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* Get get. |
188
|
|
|
* |
189
|
|
|
* @return get. |
|
|
|
|
190
|
|
|
*/ |
191
|
|
|
public function getGet() |
192
|
|
|
{ |
193
|
|
|
return $this->get; |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* Set get. |
198
|
|
|
* |
199
|
|
|
* @param get the value to set. |
200
|
|
|
*/ |
201
|
|
|
public function setGet($get) |
202
|
|
|
{ |
203
|
|
|
$this->get = $get; |
204
|
|
|
return $this; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* Get pmu. |
209
|
|
|
* |
210
|
|
|
* @return pmu. |
|
|
|
|
211
|
|
|
*/ |
212
|
|
|
public function getPmu() |
213
|
|
|
{ |
214
|
|
|
return $this->pmu; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* Set pmu. |
219
|
|
|
* |
220
|
|
|
* @param pmu the value to set. |
221
|
|
|
*/ |
222
|
|
|
public function setPmu($pmu) |
223
|
|
|
{ |
224
|
|
|
$this->pmu = $pmu; |
225
|
|
|
return $this; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* Get wt. |
230
|
|
|
* |
231
|
|
|
* @return wt. |
|
|
|
|
232
|
|
|
*/ |
233
|
|
|
public function getWt() |
234
|
|
|
{ |
235
|
|
|
return $this->wt; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* Set wt. |
240
|
|
|
* |
241
|
|
|
* @param wt the value to set. |
242
|
|
|
*/ |
243
|
|
|
public function setWt($wt) |
244
|
|
|
{ |
245
|
|
|
$this->wt = $wt; |
246
|
|
|
return $this; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* Get cpu. |
251
|
|
|
* |
252
|
|
|
* @return cpu. |
|
|
|
|
253
|
|
|
*/ |
254
|
|
|
public function getCpu() |
255
|
|
|
{ |
256
|
|
|
return $this->cpu; |
257
|
|
|
} |
258
|
|
|
|
259
|
|
|
/** |
260
|
|
|
* Set cpu. |
261
|
|
|
* |
262
|
|
|
* @param cpu the value to set. |
263
|
|
|
*/ |
264
|
|
|
public function setCpu($cpu) |
265
|
|
|
{ |
266
|
|
|
$this->cpu = $cpu; |
267
|
|
|
return $this; |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* Get serverId. |
272
|
|
|
* |
273
|
|
|
* @return serverId. |
|
|
|
|
274
|
|
|
*/ |
275
|
|
|
public function getServerId() |
276
|
|
|
{ |
277
|
|
|
return $this->serverId; |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* Set serverId. |
282
|
|
|
* |
283
|
|
|
* @param serverId the value to set. |
284
|
|
|
*/ |
285
|
|
|
public function setServerId($serverId) |
286
|
|
|
{ |
287
|
|
|
$this->serverId = $serverId; |
288
|
|
|
return $this; |
289
|
|
|
} |
290
|
|
|
|
291
|
|
|
/** |
292
|
|
|
* Get type. |
293
|
|
|
* |
294
|
|
|
* @return type. |
|
|
|
|
295
|
|
|
*/ |
296
|
|
|
public function getType() |
297
|
|
|
{ |
298
|
|
|
return $this->type; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* Set type. |
303
|
|
|
* |
304
|
|
|
* @param type the value to set. |
305
|
|
|
*/ |
306
|
|
|
public function setType($type) |
307
|
|
|
{ |
308
|
|
|
$this->type = $type; |
309
|
|
|
return $this; |
310
|
|
|
} |
311
|
|
|
|
312
|
|
|
/** |
313
|
|
|
* Get timestamp. |
314
|
|
|
* |
315
|
|
|
* @return timestamp. |
|
|
|
|
316
|
|
|
*/ |
317
|
|
|
public function getTimestamp() |
318
|
|
|
{ |
319
|
|
|
return $this->timestamp; |
320
|
|
|
} |
321
|
|
|
|
322
|
|
|
/** |
323
|
|
|
* Set timestamp. |
324
|
|
|
* |
325
|
|
|
* @param timestamp \DateTime value to set. |
326
|
|
|
*/ |
327
|
|
|
public function setTimestamp($timestamp) |
328
|
|
|
{ |
329
|
|
|
$this->timestamp = $timestamp; |
330
|
|
|
} |
331
|
|
|
|
332
|
|
|
public function __toString() |
333
|
|
|
{ |
334
|
|
|
return $this->getId(); |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* @ORM\PrePersist |
339
|
|
|
*/ |
340
|
|
|
public function beforePersist() |
341
|
|
|
{ |
342
|
|
|
$this->setTimestamp(new \DateTime()); |
343
|
|
|
} |
344
|
|
|
|
345
|
|
|
/** |
346
|
|
|
* Get aggregateCallsInclude. |
347
|
|
|
* |
348
|
|
|
* @return aggregateCallsInclude. |
|
|
|
|
349
|
|
|
*/ |
350
|
|
|
public function getAggregateCallsInclude() |
351
|
|
|
{ |
352
|
|
|
return $this->aggregateCallsInclude; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* Set aggregateCallsInclude. |
357
|
|
|
* |
358
|
|
|
* @param aggregateCallsInclude the value to set. |
359
|
|
|
*/ |
360
|
|
|
public function setAggregateCallsInclude($aggregateCallsInclude) |
361
|
|
|
{ |
362
|
|
|
$this->aggregateCallsInclude = $aggregateCallsInclude; |
363
|
|
|
return $this; |
364
|
|
|
} |
365
|
|
|
} |
366
|
|
|
|
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.