1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace ApiClients\Client\RabbitMQ\Management\Resource\Overview; |
4
|
|
|
|
5
|
|
|
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource; |
6
|
|
|
use ApiClients\Foundation\Hydrator\Annotations\Nested; |
7
|
|
|
use ApiClients\Foundation\Resource\AbstractResource; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* @Nested( |
11
|
|
|
* messages_details="Details", |
12
|
|
|
* messages_ready_details="Details", |
13
|
|
|
* messages_unacknowledged_details="Details" |
14
|
|
|
* ) |
15
|
|
|
* @EmptyResource("Overview\EmptyQueueTotals") |
16
|
|
|
*/ |
17
|
|
|
abstract class QueueTotals extends AbstractResource implements QueueTotalsInterface |
18
|
|
|
{ |
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
*/ |
22
|
|
|
protected $messages; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var Details |
26
|
|
|
*/ |
27
|
|
|
protected $messages_details; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
protected $messages_ready; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var Details |
36
|
|
|
*/ |
37
|
|
|
protected $messages_ready_details; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var int |
41
|
|
|
*/ |
42
|
|
|
protected $messages_unacknowledged; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var Details |
46
|
|
|
*/ |
47
|
|
|
protected $messages_unacknowledged_details; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @return int |
51
|
|
|
*/ |
52
|
|
|
public function messages() : int |
53
|
|
|
{ |
54
|
|
|
return $this->messages; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @return Details |
59
|
|
|
*/ |
60
|
|
|
public function messagesDetails() : Details |
61
|
|
|
{ |
62
|
|
|
return $this->messages_details; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @return int |
67
|
|
|
*/ |
68
|
|
|
public function messagesReady() : int |
69
|
|
|
{ |
70
|
|
|
return $this->messages_ready; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @return Details |
75
|
|
|
*/ |
76
|
|
|
public function messagesReadyDetails() : Details |
77
|
|
|
{ |
78
|
|
|
return $this->messages_ready_details; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @return int |
83
|
|
|
*/ |
84
|
|
|
public function messagesUnacknowledged() : int |
85
|
|
|
{ |
86
|
|
|
return $this->messages_unacknowledged; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return Details |
91
|
|
|
*/ |
92
|
|
|
public function messagesUnacknowledgedDetails() : Details |
93
|
|
|
{ |
94
|
|
|
return $this->messages_unacknowledged_details; |
95
|
|
|
} |
96
|
|
|
} |
97
|
|
|
|