MessageEvent
class MessageEvent extends TimeEvent
A class that represents a MessageEvent resource.
Traits
Trait which provides helper methods for converting DateTime input formats.
Constants
TYPE_UNSPECIFIED |
|
TYPE_SENT |
|
TYPE_RECEIVED |
|
Properties
protected DateTimeInterface | $time | from TimeEvent |
Methods
__construct(string $type, string $id, array $options = [])
Create a new MessageEvent.
string
type()
Return the type of this message event.
string
id()
Return the id of this message event.
int
uncompressedSize()
Return the uncompressed size of this message event.
int
compressedSize()
Return the compressed size of this message event.
Details
at line 72
__construct(string $type, string $id, array $options = [])
Create a new MessageEvent.
in TimeEvent at line 52
DateTimeInterface
time()
Return the time of this event.
in TimeEvent at line 62
setTime(DateTimeInterface|int|float $time = null)
Set the time for this event.
at line 90
string
type()
Return the type of this message event.
at line 100
string
id()
Return the id of this message event.
at line 110
int
uncompressedSize()
Return the uncompressed size of this message event.
at line 120
int
compressedSize()
Return the compressed size of this message event.