| @@ 254-259 (lines=6) @@ | ||
| 251 | $flagBits |= (1 << 8); |
|
| 252 | } |
|
| 253 | ||
| 254 | if ($message->hasId()) { |
|
| 255 | $properties[] = new ShortString( |
|
| 256 | new Str((string) $message->id()) |
|
| 257 | ); |
|
| 258 | $flagBits |= (1 << 7); |
|
| 259 | } |
|
| 260 | ||
| 261 | if ($message->hasTimestamp()) { |
|
| 262 | $properties[] = new Timestamp($message->timestamp()); |
|
| @@ 266-271 (lines=6) @@ | ||
| 263 | $flagBits |= (1 << 6); |
|
| 264 | } |
|
| 265 | ||
| 266 | if ($message->hasType()) { |
|
| 267 | $properties[] = new ShortString( |
|
| 268 | new Str((string) $message->type()) |
|
| 269 | ); |
|
| 270 | $flagBits |= (1 << 5); |
|
| 271 | } |
|
| 272 | ||
| 273 | if ($message->hasUserId()) { |
|
| 274 | $properties[] = new ShortString( |
|