File: AMQPBasicProperties.php

package info (click to toggle)
php-amqp 2.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,536 kB
  • sloc: ansic: 7,295; xml: 1,162; php: 690; pascal: 49; makefile: 2
file content (192 lines) | stat: -rw-r--r-- 4,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?php

/**
 * stub class representing AMQPBasicProperties from pecl-amqp
 */
class AMQPBasicProperties
{
    private ?string $contentType = null;

    private ?string $contentEncoding = null;

    private array $headers = [];

    private int $deliveryMode = AMQP_DELIVERY_MODE_TRANSIENT;

    private int $priority = 0;

    private ?string $correlationId = null;

    private ?string $replyTo = null;

    private ?string $expiration = null;

    private ?string $messageId = null;

    private ?int $timestamp = null;

    private ?string $type = null;

    private ?string $userId = null;

    private ?string $appId = null;

    private ?string $clusterId = null;

    /**
     * @param ?string $contentType
     * @param ?string $contentEncoding
     * @param ?string $correlationId
     * @param ?string $replyTo
     * @param ?string $expiration
     * @param ?string $messageId
     * @param ?int $timestamp
     * @param ?string $type
     * @param ?string $userId
     * @param ?string $appId
     * @param ?string $clusterId
     */
    public function __construct(
        ?string $contentType = null,
        ?string $contentEncoding = null,
        array $headers = [],
        int $deliveryMode = AMQP_DELIVERY_MODE_TRANSIENT,
        int $priority = 0,
        ?string $correlationId = null,
        ?string $replyTo = null,
        ?string $expiration = null,
        ?string $messageId = null,
        ?int $timestamp = null,
        ?string $type = null,
        ?string $userId = null,
        ?string $appId = null,
        ?string $clusterId = null
    ) {
    }

    /**
     * Get the message content type.
     *
     * @return string|null The content type of the message.
     */
    public function getContentType(): ?string
    {
    }

    /**
     * Get the content encoding of the message.
     *
     * @return string|null The content encoding of the message.
     */
    public function getContentEncoding(): ?string
    {
    }

    /**
     * Get the headers of the message.
     *
     * @return array An array of key value pairs associated with the message.
     */
    public function getHeaders(): array
    {
    }

    /**
     * Get the delivery mode of the message.
     *
     * @return int The delivery mode of the message.
     */
    public function getDeliveryMode(): int
    {
    }

    /**
     * Get the priority of the message.
     *
     * @return int The message priority.
     */
    public function getPriority(): int
    {
    }

    /**
     * Get the message correlation id.
     *
     * @return string|null The correlation id of the message.
     */
    public function getCorrelationId(): ?string
    {
    }

    /**
     * Get the reply-to address of the message.
     *
     * @return string|null The contents of the reply to field.
     */
    public function getReplyTo(): ?string
    {
    }

    /**
     * Get the expiration of the message.
     *
     * @return string|null The message expiration.
     */
    public function getExpiration(): ?string
    {
    }

    /**
     * Get the message id of the message.
     *
     * @return string|null The message id
     */
    public function getMessageId(): ?string
    {
    }

    /**
     * Get the timestamp of the message.
     *
     * @return int|null The message timestamp.
     */
    public function getTimestamp(): ?int
    {
    }

    /**
     * Get the message type.
     *
     * @return string|null The message type.
     */
    public function getType(): ?string
    {
    }

    /**
     * Get the message user id.
     *
     * @return string|null The message user id.
     */
    public function getUserId(): ?string
    {
    }

    /**
     * Get the application id of the message.
     *
     * @return string|null The application id of the message.
     */
    public function getAppId(): ?string
    {
    }

    /**
     * Get the cluster id of the message.
     *
     * @return string|null The cluster id of the message.
     */
    public function getClusterId(): ?string
    {
    }
}